Papin Schipper

How to use custom hooks in Companion Auto Update

If  you’re a plugin or theme developer and would like to extend the features of Companion Auto Update 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 plugin updates:

This function runs after a plugin has been succesfully updated.

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

 

After theme updates:

This function runs after a theme has been succesfully updated.

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