Pattern Wrangler 2.6.0 has 7 actions and 17 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 Pattern Wrangler fires an action
add_action( 'dlxpw_default_footer', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Pattern Wrangler is about to use
add_filter( 'dlxpw_use_default_footer', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
/** * Action to output custom header. */ do_action( 'dlxpw_default_header' ); -
/** * Filter to use default header or not. */ apply_filters( 'dlxpw_use_default_header', true ); -
/** * Allow options to be extended by plugins. */ apply_filters( 'dlx_pw_network_options_defaults', $defaults ); -
/** * Allow options to be extended by plugins. */ apply_filters( 'dlx_pw_options_defaults', $defaults ); -
/** * Action: dlx_pw_pattern_created */ do_action( 'dlx_pw_pattern_created', $pattern_id, $terms_affected_ids ); -
/** * Action: dlx_pw_pattern_duplicated */ do_action( 'dlx_pw_pattern_duplicated', $pattern_id, $terms_affected_ids ); -
/** * Action: dlx_pw_pattern_updated */ do_action( 'dlx_pw_pattern_updated', $pattern_id, $terms_affected ); -
/** * Filter registration args for the pattern versions post type. */ apply_filters( 'dlx_pw_register_pw_versions_args', $args ); -
/** * When PatternWrangler can be extended. */ do_action( 'dlxplugins_pw_loaded' ); -
/** * Filter to allow override the redirect. */ apply_filters( 'dlxpw_allow_redirect_wp_block_post_type', 1 === $allow_override ); -
/** * Filter the valid file extensions for the photo block. */ apply_filters( 'dlxpw_block_file_extensions', $file_extensions ); -
/** * Filter whether content-only mode is disabled for unsynced patterns. */ apply_filters( 'dlxpw_disable_content_only_for_unsynced_patterns', ! $maybe_enabled, $site_id ); -
/** * Allow plugin authors to override the network setting. */ apply_filters( 'dlxpw_hide_all_patterns', $hide_all_patterns, $site_id, true ); -
/** * Allow plugin authors to override the local/network setting. */ apply_filters( 'dlxpw_hide_core_patterns', $hide_core_patterns, $site_id, $is_multisite ); -
/** * Allow plugin authors to override the local/network setting. */ apply_filters( 'dlxpw_hide_remote_patterns', $hide_remote_patterns, $site_id, true ); -
/** * Filter to get the pattern ID. */ apply_filters( 'dlxpw_pattern_preview_id', '' ); -
/** * Filter to get the scale. */ apply_filters( 'dlxpw_pattern_preview_scale', 1, $viewport_width ); -
/** * Filter the default viewport width for pattern previews. */ apply_filters( 'dlxpw_pattern_preview_viewport_width', 1400 ); -
/** * Action to output custom actions. */ do_action( 'dlxpw_preview_actions' ); -
apply_filters( 'the_content', $pattern_content ); -
apply_filters( 'dlxpw_pattern_preview_content', '' ); -
apply_filters( 'dlxpw_pattern_preview_nonce', '' );
Generated from Pattern Wrangler'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: