commonWP 1.1.0 has 13 actions and 37 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 commonWP fires an action
add_action( 'deleted_site_temporary', function( $temporary ) {
// Your code runs here.
}, 10, 1 );
// Change a value commonWP is about to use
add_filter( 'commonwp_inactive_path_ttl_for_recently_upgraded_core', 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
-
/** * This filter is documented in inc/Expiration.php */ apply_filters( 'commonwp_inactive_path_ttl_for_recently_upgraded_core', 15 * MINUTE_IN_SECONDS ); -
/** * Filter whether to hash content for current path. */ apply_filters( 'commonwp_add_subresource_integrity', true, $this ); -
/** * Filter TTL of active path that rewrites to emoji SVG directory to NPM path. */ apply_filters( 'commonwp_emoji_npm_path_ttl', WEEK_IN_SECONDS, $this ); -
/** * Filter to get src outside of store. */ apply_filters( 'commonwp_get_src', false, $relative_path, $src, $handle, $type ); -
/** * Filter TTL of active path that rewrites to GitHub path. */ apply_filters( 'commonwp_github_path_ttl', 2 * DAY_IN_SECONDS, $this ); -
/** * Filter TTL of inactive path. */ apply_filters( 'commonwp_inactive_path_ttl', DAY_IN_SECONDS, $process ); -
/** * Filter maximum number of processes that should occur in current processing. */ apply_filters( 'commonwp_max_items_in_processing_queue', 10 ); -
/** * Filter whether to always ask for identical content on NPM. */ apply_filters( 'commonwp_npm_compare_with_local', true, $this ); -
/** * Filter TTL of active path that rewrites to NPM path. */ apply_filters( 'commonwp_npm_path_ttl', WEEK_IN_SECONDS, $this ); -
/** * Filter basename path of the commonWP's main file. */ apply_filters( 'commonwp_plugin_basename', $plugins_path ); -
/** * Filter plugin's data. */ apply_filters( 'commonwp_plugin_from_slug', $plugin, $slug ); -
/** * Filter TTL of active path that rewrites to plugin path. */ apply_filters( 'commonwp_plugin_path_ttl', DAY_IN_SECONDS, $this ); -
/** * Filter raw store data before processing. */ apply_filters( 'commonwp_pre_process_queue_stored_data', $stored_data ); -
/** * Filter whether to rewrite core path with current version when pending major * core update. */ apply_filters( 'commonwp_process_core_with_major_update', true, $this ); -
/** * Filter whether to rewrite core path with current version when pending minor * core update. */ apply_filters( 'commonwp_process_core_with_minor_update', true, $this ); -
/** * Filter whether to rewrite plugin path with pending plugin's update. */ apply_filters( 'commonwp_process_plugin_with_update', true, $this, $plugin ); -
/** * Filter whether to rewrite theme path with pending theme's update. */ apply_filters( 'commonwp_process_theme_with_update', true, $this, $theme ); -
/** * Filter whether rewrite should occur for current dependency. */ apply_filters( 'commonwp_should_rewrite', true, $relative_path, $src, $handle, $type ); -
/** * Filter name of callback for manipulating store data. */ apply_filters( 'commonwp_store_callback', $function, $base ); -
/** * Filter name of \WP_Temporary method for manipulating temporary data. */ apply_filters( 'commonwp_temporaries_method', $method, $base ); -
/** * Filter theme's data. */ apply_filters( 'commonwp_theme_from_slug', $data, $slug ); -
/** * Filter TTL of active path that rewrites to theme path. */ apply_filters( 'commonwp_theme_path_ttl', 3 * DAY_IN_SECONDS, $this ); -
/** * Filter tag for current WordPress version on GitHub. */ apply_filters( 'commonwp_wp_core_version_on_github', $version ); -
/** * Fires immediately before a specific site temporary is deleted. */ do_action( "delete_site_temporary_{$temporary}", $temporary ); -
/** * Fires immediately before a specific temporary is deleted. */ do_action( "delete_temporary_{$temporary}", $temporary ); -
/** * Fires after a temporary is deleted. */ do_action( 'deleted_site_temporary', $temporary ); -
/** * Fires after a temporary is deleted. */ do_action( 'deleted_temporary', $temporary ); -
/** * Filter the expiration for a site temporary before its value is set. */ apply_filters( "expiration_of_site_temporary_{$temporary}", $expiration, $value, $temporary ); -
/** * Filter the expiration for a temporary before its value is set. */ apply_filters( "expiration_of_temporary_{$temporary}", $expiration, $value, $temporary ); -
/** * Filter scripts and their data available for replacement. */ apply_filters( 'npm_packages_scripts', $scripts ); -
/** * Filter styles and their data available for replacement. */ apply_filters( 'npm_packages_styles', $styles ); -
/** * Filter the value of a specific site temporary before it is set. */ apply_filters( "pre_set_site_temporary_{$temporary}", $value, $temporary ); -
/** * Filter a specific temporary before its value is set. */ apply_filters( "pre_set_temporary_{$temporary}", $value, $expiration, $temporary ); -
/** * Filter the value of an existing site temporary. */ apply_filters( "pre_site_temporary_{$temporary}", false, $temporary ); -
/** * Filter the value of an existing temporary. */ apply_filters( "pre_temporary_{$temporary}", false, $temporary ); -
/** * Filter a specific temporary before its value is updated. */ apply_filters( "pre_update_site_temporary_{$temporary}", $value, $temporary ); -
/** * Filter a specific temporary before its value is updated. */ apply_filters( "pre_update_temporary_{$temporary}", $value, $temporary ); -
/** * Fires after the value for a specific site temporary has been set. */ do_action( "set_site_temporary_{$temporary}", $value, $expiration, $temporary ); -
/** * Fires after the value for a specific temporary has been set. */ do_action( "set_temporary_{$temporary}", $value, $expiration, $temporary ); -
/** * Fires after the value for a site temporary has been set. */ do_action( 'setted_site_temporary', $temporary, $value, $expiration ); -
/** * Fires after the value for a temporary has been set. */ do_action( 'setted_temporary', $temporary, $value, $expiration ); -
/** * Filter the value of an existing site temporary. */ apply_filters( "site_temporary_{$temporary}", $value, $temporary ); -
/** * Filter an existing temporary's value. */ apply_filters( "temporary_{$temporary}", $value, $temporary ); -
/** * Fires after the value for a specific temporary has been updated. */ do_action( "update_site_temporary_{$temporary}", $value, $expiration, $temporary ); -
/** * Fires after the value for a specific temporary has been updated. */ do_action( "update_temporary_{$temporary}", $value, $expiration, $temporary ); -
/** * Fires after the value for a temporary has been updated. */ do_action( 'updated_site_temporary', $temporary, $value, $expiration ); -
/** * Fires after the value for a temporary has been updated. */ do_action( 'updated_temporary', $temporary, $value, $expiration ); -
/** * Fires after the cleaning of temporaries has been done. */ do_action( 'wp_temporary_clean_after' ); -
/** * Allow short-circuit of cleaning of temporaries. */ apply_filters( 'wp_temporary_clean_pre', false ); -
apply_filters( 'https_local_ssl_verify', false );
Generated from commonWP'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: