Cartpace 1.0.1 has 21 actions and 43 filters, read directly from its source code on Nov 19, 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 Cartpace fires an action
add_action( 'cartpace/license/deactivated', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Cartpace is about to use
add_filter( 'cartpace/pro/installed', 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 action is documented in includes/support/class-license.php */ do_action( 'cartpace/license/deactivated' ); -
/** * Filter whether the code behind the paid features is present. */ apply_filters( 'cartpace/pro/installed', false ); -
/** * Filter the capability required to manage Cartpace. */ apply_filters( 'cartpace/capability', is_multisite() ? 'manage_network_options' : 'manage_options' ); -
/** * Fires before settings are written, with the computed diff. */ do_action( 'cartpace/settings/before_update', $changed, $before, $context ); -
/** * Fires after settings are written. */ do_action( 'cartpace/settings/updated', $changed, $before, $context ); -
/** * Fires under the licence card on the licence screen. */ do_action( 'cartpace/admin/licence_extra', $view, $container ); -
/** * Filter the menu rows. */ apply_filters( 'cartpace/admin/pages', $pages ); -
/** * Filter where a screen's markup comes from. */ apply_filters( 'cartpace/admin/view', $file, $screen ); -
/** * Filter whether an asset is excluded from minification. */ apply_filters( 'cartpace/assets/excluded', false, $src, $handle ); -
/** * Filter the locked bloat toggles. */ apply_filters( 'cartpace/bloat/locked', $locked ); -
/** * Fires once Cartpace is fully wired. */ do_action( 'cartpace/booted', $this ); -
/** * Filter whether the agency features are available. */ apply_filters( 'cartpace/branding/is_agency', false ); -
/** * Filter the logo shown on screens a client may see. */ apply_filters( 'cartpace/branding/logo', $this->asset( 'logo' ) ); -
/** * Filter the name this plugin goes by on this site. */ apply_filters( 'cartpace/branding/name', 'Cartpace' ); -
/** * Filter the logo used by the PDF writer. */ apply_filters( 'cartpace/branding/print_logo', CARTPACE_URL . 'assets/logo/cartpace-logo-mono.png' ); -
/** * Filter whether the plugin has been renamed for this site. */ apply_filters( 'cartpace/branding/renamed', false ); -
/** * Filter the support address a renamed install points clients at. */ apply_filters( 'cartpace/branding/support_url', '' ); -
/** * Filter the generated cache config before it is written. */ apply_filters( 'cartpace/cache/config', $config ); -
/** * Filter the cookies a cached page is keyed on. */ apply_filters( 'cartpace/cache/vary_cookies', array(), $woo ); -
/** * Filter the final cacheability verdict for this request. */ apply_filters( 'cartpace/cache/verdict', $verdict ); -
/** * Filter the diagnostic checks. */ apply_filters( 'cartpace/diagnostics/checks', $checks ); -
/** * Filter the per-builder delay exclusions. */ apply_filters( 'cartpace/exclusions/builder_delay', array() ); -
/** * Filter the defer exclusion list. */ apply_filters( 'cartpace/exclusions/defer', $patterns ); -
/** * Filter the delay exclusion list. */ apply_filters( 'cartpace/exclusions/delay', $patterns ); -
/** * Filter the maintained delay exclusions. */ apply_filters( 'cartpace/exclusions/delay_pro', array() ); -
/** * Filter the unused-CSS safelist. */ apply_filters( 'cartpace/exclusions/rucss_safelist', $patterns ); -
/** * Filter stylesheets excluded from unused-CSS removal. */ apply_filters( 'cartpace/exclusions/rucss_stylesheets', $patterns ); -
/** * Filter the Cartpace cache root. */ apply_filters( 'cartpace/filesystem/root', WP_CONTENT_DIR . '/cache/cartpace' ); -
/** * Filter the contextual help topics. */ apply_filters( 'cartpace/help/topics', $topics ); -
/** * Filter the generated .htaccess rules. */ apply_filters( 'cartpace/htaccess/rules', $rules ); -
/** * Filter whether Cartpace should touch this request. */ apply_filters( 'cartpace/is_optimizable_request', true ); -
/** * Filter whether paid features are unlocked. */ apply_filters( 'cartpace/is_pro', $pro ); -
/** * Filter one iframe into something cheaper. */ apply_filters( 'cartpace/lazyload/facade', null, $src, $parsed ); -
/** * Filter the document after images and iframes have been handled. */ apply_filters( 'cartpace/lazyload/html', $html ); -
/** * Fires after a licence key has been activated against the server. */ do_action( 'cartpace/license/activated', $response ); -
/** * Filter the licence API endpoint. */ apply_filters( 'cartpace/license/endpoint', self::ENDPOINT ); -
/** * Short-circuit the licence request. */ apply_filters( 'cartpace/license/pre_request', null, $action, $key ); -
/** * Filter the module class map before anything is built. */ apply_filters( 'cartpace/modules', $this->classes ); -
/** * Fires once every active module has attached its hooks. */ do_action( 'cartpace/modules/booted', $this ); -
/** * Fires with the final HTML. The page cache stores from here. */ do_action( 'cartpace/output/complete', $html, $this ); -
/** * Filter the finished HTML before it is cached and sent. */ apply_filters( 'cartpace/output/html', $html, $this ); -
/** * Filter the licence plan. */ apply_filters( 'cartpace/plan', $plan ); -
/** * Filter the HTML processor classes. */ apply_filters( 'cartpace/processors', array( Optimizer\Processors\Fonts::class, Optimizer\Processors\Image_Dimensions::class, Optimizer\Processors\Lazy_Load::class, Optimizer\Processors\Delay_JS::class, Optimizer\Processors\CDN_Rewrite::class, Optimizer\Processors\Minify_HTML::class, ) ); -
/** * Filter where the buy buttons go. */ apply_filters( 'cartpace/purchase_url', 'https://quellbox.com/cartpace/pricing/' ); -
/** * Fires so third parties can register their own purge triggers. */ do_action( 'cartpace/purge/register', $this ); -
/** * Fires after the entire page cache is cleared. */ do_action( 'cartpace/purged/all', $trigger ); -
/** * Fires after a post and its listings are cleared. */ do_action( 'cartpace/purged/post', $post_id, $urls ); -
/** * Fires after one URL is cleared. */ do_action( 'cartpace/purged/url', $url, $trigger ); -
/** * Filter the server caches Cartpace knows how to clear. */ apply_filters( 'cartpace/purgers', $keyed ); -
/** * Filter the REST controller classes. */ apply_filters( 'cartpace/rest/controllers', $classes ); -
/** * Filter the choice labels. */ apply_filters( 'cartpace/settings/choice_labels', $choices ); -
/** * Filter the setting labels. */ apply_filters( 'cartpace/settings/labels', $labels ); -
/** * Filter the Cartpace settings schema. */ apply_filters( 'cartpace/settings/schema', $fields ); -
/** * Fires when the site moves between the free and paid tier. */ do_action( 'cartpace/tier/changed' ); -
/** * Fires while deciding which store scripts this page needs. */ do_action( 'cartpace/woocommerce/asset_rules', $this ); -
do_action( 'cartpace/emergency/cleared' ); -
do_action( 'cartpace/emergency/engaged' ); -
do_action( 'cartpace/safe_mode/disabled' ); -
do_action( 'cartpace/safe_mode/enabled', $reason ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'litespeed_purge_url', $url ); -
do_action( 'rt_nginx_helper_purge_all' );
Generated from Cartpace'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: