Woody Code Snippets 2.7.12 has 8 actions and 27 filters, read directly from its source code on Nov 17, 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 Woody Code Snippets fires an action
add_action( 'wbcr_inp_php_shortcode_error', function( $exception, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value Woody Code Snippets is about to use
add_filter( 'wbcr/inp/execute_snippet/snippet_code', function( $snippet_code, $id ) {
// Change $snippet_code here.
return $snippet_code;
}, 10, 2 );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
-
wbcr_inp_php_shortcode_error
action/** * Fires when PHP shortcode execution raises a catchable error. */ do_action( 'wbcr_inp_php_shortcode_error', $exception, self::$current_snippet ); -
/** * Filter snippet code before execute */ apply_filters( 'wbcr/inp/execute_snippet/snippet_code', $snippet_code, $id ); -
/** * Shortcode content filter */ apply_filters( 'wbcr/inp/snippet/shortcode_ad/post_content', $post_content, $id ); -
/** * Shortcode content filter */ apply_filters( 'wbcr/inp/snippet/shortcode_text/post_content', $post_content, $id ); -
/** * Filters the insertion locations. */ apply_filters( 'wbcr/woody/add_custom_location', [] ); -
/** * Action for a custom location applied in 'wbcr/woody/add_custom_location' * filter */ do_action( "wbcr/woody/do_custom_location/{$location}", $snippet_content ); -
/** * Action for woo actions */ do_action( 'wbcr/woody/do_woocommerce_actions', $location, $snippet_content ); -
product_woody_license_key
filterapply_filters( 'product_woody_license_key', 'free' ); -
product_woody_license_status
filterapply_filters( 'product_woody_license_status', false ); -
themeisle_internal_page
actiondo_action( 'themeisle_internal_page', WINP_PLUGIN_SLUG, 'wbcr-snippets' ); -
cachify_flush_cache
actiondo_action( 'cachify_flush_cache' ); -
import_upload_size_limit
filterapply_filters( 'import_upload_size_limit', wp_max_upload_size() ); -
product_woody_license_plan
filterapply_filters( 'product_woody_license_plan', 0 ); -
apply_filters( 'themeisle_sdk_license_process_woody', $key, $action ); -
themeisle_sdk_secret_masking
filterapply_filters( 'themeisle_sdk_secret_masking', self::app()->premium->get_key() ); -
do_action( 'wbcr_inp_after_execute_snippet', get_the_ID(), $snippet_code, $result ); -
wbcr_inp_items_lables
filterapply_filters( 'wbcr_inp_items_lables', $labels ); -
wbcr_inp_items_supports
filterapply_filters( 'wbcr_inp_items_supports', $supports ); -
apply_filters( 'wbcr/factory/flush_wpengine_aggressive', false ); -
apply_filters( 'wbcr/factory/wpengine_methods', $wpe_methods ); -
do_action( 'wbcr/inp/base_option/on_saving_form', $post_id ); -
apply_filters( 'wbcr/inp/execute/check_condition', false, $method_name, $operator, $value ); -
apply_filters( 'wbcr/inp/gutenberg/shortcode_attributes', ' id="' . $snippet_id . '" ', $snippet_id ); -
apply_filters( 'wbcr/inp/gutenberg/shortcode_name', sprintf( 'wbcr%s_snippet', ( $type === WINP_SNIPPET_TYPE_UNIVERSAL ? '' : '_' . $type ) ), $snippet_id ); -
apply_filters( 'wbcr/inp/helper/get_shortcode_data', $result, $tinymce ); -
wbcr/inp/import/snippet
filterapply_filters( 'wbcr/inp/import/snippet', false, $ext, $mime_type, $import_file, $dup_action ); -
wbcr/inp/settings/options
filterapply_filters( 'wbcr/inp/settings/options', $options ); -
wbcr/inp/settings/sections
filterapply_filters( 'wbcr/inp/settings/sections', $sections ); -
wbcr/inp/snippet/clone_meta
actiondo_action( 'wbcr/inp/snippet/clone_meta', $snippet['id'], $snippet, $this ); -
apply_filters( 'wbcr/inp/snippet/prepare_data', $snippet, $id, $this ); -
wbcr/inp/viewtable/where_use
filterapply_filters( 'wbcr/inp/viewtable/where_use', '[wbcr_' . $snippet_type . 'snippet id="' . $post->ID . '"]', $post->ID ); -
apply_filters( 'wbcr/inp/visibility/filter_params', $grouped_filter_params ); -
winp_skip_snippet_execution
filterapply_filters( 'winp_skip_snippet_execution', false, $id ); -
wpml_active_languages
filterapply_filters( 'wpml_active_languages', null, null );
Generated from Woody Code Snippets's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: