Accelerate 4.4.1 has 12 actions and 51 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 Accelerate fires an action
add_action( 'altis.experiments.test.ended', function( $test_id, $post_id ) {
// Your code runs here.
}, 10, 2 );
// Change a value Accelerate is about to use
add_filter( 'altis.experiments.default_test_mode', function( $value, $test_id, $post_id ) {
// 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
-
/** * Filter the default test mode used for newly-started A/B tests. */ apply_filters( 'altis.experiments.default_test_mode', 'bandit', $test_id, $post_id ); -
/** * Dispatch action when test has ended. */ do_action( 'altis.experiments.test.ended', $test_id, $post_id ); -
/** * Filter whether an ACF block type uses post meta storage. */ apply_filters( 'altis.accelerate.acf.block_uses_post_meta', $uses_post_meta, $block_name ); -
/** * Filters the ability of using block thumbnail API / service. */ apply_filters( 'altis.accelerate.allow_block_thumbnails', true, $block_id ); -
/** * Filter to allow disabling the functionality altogether. */ apply_filters( 'altis.accelerate.export.cron.enabled', true ); -
/** * Filter the cron job schedule interval. */ apply_filters( 'altis.accelerate.export.cron.frequency', ALTIS_ACCELERATE_EXPORT_CRON_FREQUENCY ); -
/** * Limit the query to X number of rows, in case the last timestamp isn't found. */ apply_filters( 'altis.accelerate.export.cron.max_rows', 15000 ); -
/** * Process analytics data exported from S3. */ do_action( 'altis.accelerate.export.data.process', $data ); -
/** * Limits the number of active audiences there can be in use at any one time on * the front end. */ apply_filters( 'altis.analytics.audiences.limit', 100 ); -
/** * Filter the attributes recorded when tracking a reusable block view. */ apply_filters( 'altis.analytics.block_event_attributes', [ 'blockAuthorID' => (string) $block_post->post_author, 'blockAuthor' => get_user_by( 'id', $block_post->post_author )->user_nicename, ], $block_post ); -
/** * Filter the metrics recorded when tracking a reusable block event. */ apply_filters( 'altis.analytics.block_event_metrics', [], $block_post ); -
/** * Filter the default Clickhouse connection configuration. */ apply_filters( 'altis.analytics.clickhouse_config', $config ); -
/** * Filter the args used to control the request type. */ apply_filters( 'altis.analytics.clickhouse.request_args', $request_args, $query, $params, $body ); -
/** * Filters whether the consent cookie should be used. */ apply_filters( 'altis.analytics.consent_enabled', defined( 'WP_CONSENT_API_URL' ) ); -
/** * Filter the custom analytics variable data. */ apply_filters( 'altis.analytics.data', $data ); -
/** * Filter the custom analytics attributes to record with all events. */ apply_filters( 'altis.analytics.data.attributes', $data['Attributes'] ); -
/** * Filter the custom analytics endpoint/user data. */ apply_filters( 'altis.analytics.data.endpoint', $data['Endpoint'] ); -
/** * Filter the custom analytics metrics to record with all events. */ apply_filters( 'altis.analytics.data.metrics', $data['Metrics'] ); -
/** * Create our own early hook for queueing */ do_action( 'altis.analytics.enqueue_scripts' ); -
/** * Filters whether to exclude bot traffic or not. */ apply_filters( 'altis.analytics.exclude_bots', true ); -
/** * Filter the require capability for exporting analytics events. */ apply_filters( 'altis.analytics.export_events_capability', 'manage_options' ); -
/** * Trigger custom handling of logs, eg: for external notifications. */ do_action( 'altis.analytics.export.log', $message, $level ); -
/** * Toggle plugin feature. */ apply_filters( "altis.analytics.feature.{$feature}", true ); -
/** * If true prevents any analytics events from actually being sent to the * analaytics database. Useful in situations such as previewing content. */ apply_filters( 'altis.analytics.noop', false ); -
/** * Filters always allowed cookie consent categories. */ apply_filters( 'altis.consent.always_allow_categories', [ 'functional', 'statistics-anonymous', ] ); -
/** * Filter the per-variant conversion floor required to exit burn-in. */ apply_filters( 'altis.experiments.bandit.burn_in_min_conversions', 50, $test_id, $post_id ); -
/** * Filter the per-variant incremental conversion floor required to finish the * confirmatory phase. */ apply_filters( 'altis.experiments.bandit.confirmatory_min_conversions', 100, $test_id, $post_id ); -
/** * Filter the per-arm weight cap (as a percentage 0-100). */ apply_filters( 'altis.experiments.bandit.weight_cap', 90.0, $test_id, $post_id ); -
/** * Filter the per-arm weight floor (as a percentage 0-100). */ apply_filters( 'altis.experiments.bandit.weight_floor', 5.0, $test_id, $post_id ); -
/** * Enable Featured images AB Tests. */ apply_filters( 'altis.experiments.features.featured_images', true ); -
/** * Enable Title AB Tests. */ apply_filters( 'altis.experiments.features.titles', true ); -
/** * Dispatch action when a test of this type has ended. */ do_action( "altis.experiments.test.ended.{$test_id}", $post_id ); -
/** * Filter the recipients list for the test results. */ apply_filters( 'altis.experiments.test.notification.recipients', [ $post->post_author ], $test_id, $post_id ); -
/** * Filter test options. */ apply_filters( 'altis.experiments.test.options', $options, $test_id ); -
/** * Dispatch action when a test is registered. */ do_action( 'altis.experiments.test.registered', $test_id, $options ); -
/** * Filter environment traits delivered to PostHog. */ apply_filters( 'altis.telemetry.env_traits', $traits ); -
/** * Filter site traits delivered to PostHog. */ apply_filters( 'altis.telemetry.site_traits', $traits ); -
/** * Filter the contents of the loaded manifest. */ apply_filters( 'asset_loader_manifest_contents', json_decode( $contents, true ), $path ); -
/** * Filter the default term name that gets used in the `$tax` permalink token. */ apply_filters( "default_{$tax}", get_option( "default_{$tax}", '' ), $post ); -
/** * Filter the arguments for this post type. */ apply_filters( "ext-cpts/{$post_type}/args", $args ); -
/** * Fired when the extended post type instance is set up. */ do_action( "ext-cpts/{$post_type}/instance", $this ); -
/** * Filter the plural, singular, and slug names for this post type. */ apply_filters( "ext-cpts/{$post_type}/names", $names ); -
/** * Filter the arguments for a post type. */ apply_filters( 'ext-cpts/args', $args, $post_type ); -
/** * Filter the plural, singular, and slug names for a post type. */ apply_filters( 'ext-cpts/names', $names, $post_type ); -
/** * Filter the arguments for this taxonomy. */ apply_filters( "ext-taxos/{$taxonomy}/args", $args ); -
/** * Fired when the extended taxonomy instance is set up. */ do_action( "ext-taxos/{$taxonomy}/instance", $this ); -
/** * Filter the plural, singular, and slug for this taxonomy. */ apply_filters( "ext-taxos/{$taxonomy}/names", $names ); -
/** * Filter the arguments for a taxonomy. */ apply_filters( 'ext-taxos/args', $args, $taxonomy ); -
/** * Execute code after the taxonomy meta box content outputs to the page. */ do_action( 'ext-taxos/meta_box/after', $tax, $post, $type ); -
/** * Execute code before the taxonomy meta box content outputs to the page. */ do_action( 'ext-taxos/meta_box/before', $tax, $post, $type ); -
/** * Filter the plural, singular, and slug for a taxonomy. */ apply_filters( 'ext-taxos/names', $names, $taxonomy ); -
/** * Filter the term that gets used in the `$tax` permalink token. */ apply_filters( "post_link_{$tax}", reset( $terms ), $terms, $post ); -
/** * Filters the additional fields array which starts as an empty array. */ apply_filters( 'rest_get_relationship_item_additional_fields_schema', [] ); -
/** * Filters the post data for a response. */ apply_filters( 'rest_prepare_relationships_response', $response, $post, $request ); -
/** * Filters the consent cookie prefix to integrate with the WordPress Consent * API. */ apply_filters( 'wp_consent_cookie_prefix', 'wp_consent' ); -
apply_filters( 'altis.analytics.ui.graph_aggregations', [] ); -
apply_filters( 'the_category', $object->name ); -
apply_filters( 'altis_post_types_with_reusable_blocks', $post_types ); -
apply_filters( 'altis.accelerate.block-image.preview-class', $classes ); -
apply_filters( 'altis.analytics.ui.dimension_fields', [] ); -
do_action( 'altis.experiments.test.winner_found', $test_id, $post_id, $variants[ $winner ]['value'] ); -
do_action( "altis.experiments.test.winner_found.{$test_id}", $post_id, $variants[ $winner ]['value'] ); -
apply_filters( 'list_cats', $object->name, $object );
Generated from Accelerate'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: