• Companion Auto Update
  • Companion Sitemap Generator
  • Companion Revision Manager
  • Companion Portfolio

Papin Schipper (CodeerMeneer)

Coffee addict & WordPress developer

  • Hello
  • Plugins
  • Blog
  • Documentation
  • Contact me
  • Menu

How to use custom hooks in Companion Portfolio

  1. 1 Home
  2. 2 Documentation and Tutorials
  3. 3 How to use custom hooks in Companion Portfolio

If  you’re a plugin or theme developer and would like to extend the features of Companion Portfolio you can do so by using custom hooks and filters. If you have any idea on new hooks that should be added to this plugin please reach out to me and I’ll see what I can do.

The hooks

After the content

This function runs after the content on the single page

function your_function() {
   // Your code goes here
}
add_action( 'cp_after_content', 'your_function' );

Remove website link

To remove the link it adds by default

remove_action( 'cp_after_content', 'cp_website_button', 10 );

Add to the thumbnail overlay

function your_function() { 
    // Your code goes here 
}
add_action( 'cp_portfolio_actions', 'your_function' );

Remove thumbnail overlay with actions

remove_action( 'cp_portfolio_actions', 'cp_actions_overlay', 1 );
remove_action( 'cp_portfolio_actions', 'cp_portfolio_add_actions', 5 );
remove_action( 'cp_portfolio_actions', 'cp_actions_overlay_e', 10 );
Papin Schipper 8 March 2019

Continue reading

Companion Revision Manager

How to use Companion Revision Manager

At the time of writing this, Companion Revision Manager is a pretty straight forward plugin with not that many settings. This post exists more because I needed to add something to the documentation area. The plugin has 3 options; An option to delete all existing revisions An option to disable (or enable) revisions completely And […]

Papin Schipper 8 March 2019

Known issues & fixes for Companion Auto Update

A plugin of this scale can’t go without at least a few issues. All known issues are listed here with a fix for it (if we have one). Issues with paid plugins & themes Issues with plugins Automatic updates are disabled Issues with paid plugins & themes Right now paid plugins & themes might not […]

Papin Schipper 8 March 2019

Companion WordPress Plugins

Helping you get the most out of your WordPress website, that’s what the Companion Plugins for WordPress are all about.

Check out my portfolio for all the plugins.

I’m always looking for new ideas as to what I can create next, or what can be improved to one of my existing plugins so don’t hesitate to contact me about any idea!

Recent posts

  • WordPress 5.5 versus Companion Auto Update
  • Companion Auto Updates’ most requested feature is here (sort of)
  • Add more intervals to the options in Companion Auto Update
  • How to use the shortcode in Companion Portfolio
  • Companion Sitemap Generator <3 Gutenberg

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Papin Schipper (CodeerMeneer)Coffee addict & WordPress developer
  • HTML Sitemap
  • Curriculum Vitae
  • Plugins for WordPress
  • Hire me?