Classic Addons 4.3.1 has 9 actions and 11 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Classic Addons fires an action
add_action( 'cawpb_admin_enqueue_scripts', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Classic Addons is about to use
add_filter( 'cawpb_module_paths', function( $value, $slug, $settings ) {
// Change $value here.
return $value;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires inside admin_enqueue_scripts so external plugins can register * admin-side assets through the same callback. */ do_action( 'cawpb_admin_enqueue_scripts' ); -
/** * Fires before any addon is registered with WPBakery. Lets external plugins * register their addon include paths just in time. */ do_action( 'cawpb_before_addons_init' ); -
/** * Fires inside the free plugin's wp_enqueue_scripts callback so that external * plugins (e.g. Classic Addons Pro) can register their own on-demand front-end * assets through the same loader path. */ do_action( 'cawpb_enqueue_front_scripts', $post ); -
/** * Fires after every enabled addon has been registered with WPBakery. Useful * for late-binding work that depends on vc_map. */ do_action( 'cawpb_init' ); -
/** * Filter the on-disk location of an addon's shortcode class and settings * files. External plugins use this to point the loader at files inside their * own plugin directory. */ apply_filters( 'cawpb_module_paths', array( 'file' => CAWPB_PATH . '/addons/' . sanitize_file_name( $slug ) . '/' . sanitize_file_name( $slug ) . '.php', 'settings' => CAWPB_PATH . '/addons/' . sanitize_file_name( $slug ) . '/settings.php', ), $slug, $settings ); -
/** * Filter the final vc_map() settings for an addon. */ apply_filters( 'cawpb_module_settings', $settings, $slug ); -
/** * Filter the master list of registered addons. */ apply_filters( 'cawpb_modules', $addons ); -
/** * Generic catch-all filter for cross-cutting param injection (e.g. tooltip / * sticky params added to every addon). */ apply_filters( 'cawpb_params', $cawpb_params, $base, $slug ); -
/** * Fires after the built-in vc_add_shortcode_param() calls so external plugins * can register their own custom param types through the same * vc_load_default_params loader. */ do_action( 'cawpb_register_components' ); -
/** * Filter the list of addons displayed on the enable/disable settings screen. * Child item slugs (e.g. accordion-item) are already removed. */ apply_filters( 'cawpb_settings_modules', $addons ); -
/** * Filter testimonial image attributes. */ apply_filters( 'cawpb_testimonial_image_attr', $attr, $image_id, $size ); -
do_action( 'cawpb_testimonial_display_company', $company, $url ); -
do_action( 'cawpb_testimonial_display_rating', $stars ); -
do_action( 'cawpb_render_icon_component', $attrs, $addon_base, false ); -
do_action( 'cawpb_render_button_component', $attrs, $addon_base, true ); -
apply_filters( 'cawpb_border_style_options_data', $style ); -
apply_filters( 'cawpb_can', false, (string) $feature_key ); -
apply_filters( 'cawpb_get_image_by_size', array( 'thumbnail' => $thumbnail, 'p_img_large' => $p_img_large, 'image_url' => $image_url, ), $attach_id, $params ); -
apply_filters( 'cawpb_is_pro', false ); -
apply_filters( "cawpb_params_{$base}", $cawpb_params, $slug );
Generated from Classic Addons's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: