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 custom code goes here 

}
add_filter( 'cau_after_plugin_update', 'your_function' );

After theme updates

This function runs after a theme has been succesfully updated.

function your_function() {

     // Your custom code goes here 

}
add_filter( 'cau_after_theme_update', 'your_function' );

After core update (since 3.6)

This function runs after the core has been succesfully updated.

function your_function() {

     // Your custom code goes here 

}
add_filter( 'cau_after_core_update', 'your_function' );