Otter Blocks 3.2.11 has 8 actions and 59 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 Otter Blocks fires an action
add_action( 'otter_form_record_save', function( $form_data ) {
// Your code runs here.
}, 10, 1 );
// Change a value Otter Blocks is about to use
add_filter( 'otter_ai_backend', function( $resolved ) {
// Change $resolved here.
return $resolved;
}, 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
-
otter_ai_backend
filter/** * Filters the effective AI backend used by Otter AI features. */ apply_filters( 'otter_ai_backend', $resolved ); -
otter_ai_backends
filter/** * Filters the available Otter AI backend strategies. */ apply_filters( 'otter_ai_backends', $backends ); -
/** * Filters the legacy OpenAI model used when the client did not pin one. */ apply_filters( 'otter_ai_block_generation_model', 'gpt-5.6-terra', $payload ); -
otter_ai_client_available
filter/** * Filters whether the WP AI Client is considered available for Otter AI * features. */ apply_filters( 'otter_ai_client_available', $available ); -
otter_ai_otter_openai_model
filter/** * Filters the OpenAI model used for Otter's OpenAI requests. */ apply_filters( 'otter_ai_otter_openai_model', isset( $payload['model'] ) ? (string) $payload['model'] : '', $payload ); -
/** * Filters the OpenAI-shaped payload before Otter sends it to OpenAI. */ apply_filters( 'otter_ai_otter_openai_payload', $payload ); -
/** * Filters the HTTP arguments used for Otter's OpenAI request. */ apply_filters( 'otter_ai_otter_openai_request_args', $request_args, $payload ); -
/** * Filters the decoded OpenAI response before returning it to Otter callers. */ apply_filters( 'otter_ai_otter_openai_response', $body, $payload ); -
otter_ai_request_timeout
filter/** * Filter the HTTP timeout (in seconds) for AI generation requests. */ apply_filters( 'otter_ai_request_timeout', self::DEFAULT_REQUEST_TIMEOUT ); -
/** * Gather exceptions for Dynamic request from other plugins via hooks. Before * merging the changes, we make sure that critical data is present. */ apply_filters( 'otter_blocks_dynamic_content_exception', $data ); -
otter_form_data_preparation
filter/** * Apply additional actions before using the main handler function for * submitting. */ apply_filters( 'otter_form_data_preparation', $form_data ); -
otter_form_record_save
action/** * Persist the submission as a Record before attempting any delivery action, so * a delivery failure can no longer lose the submission. The save handler * stores the new Record ID on the form data. */ do_action( 'otter_form_record_save', $form_data ); -
product_otter_license_key
filterapply_filters( 'product_otter_license_key', false ); -
otter_apply_dynamic_image
filterapply_filters( 'otter_apply_dynamic_image', $value['url'] ); -
themeisle_internal_page
actiondo_action( 'themeisle_internal_page', OTTER_PRODUCT_SLUG, 'editor' ); -
otter_dashboard_data
filterapply_filters( 'otter_dashboard_data', $global_data ); -
otter_form_after_submit
actiondo_action( 'otter_form_after_submit', $form_data ); -
otter_form_email_render_body
filterapply_filters( 'otter_form_email_render_body', $form_data ); -
otter_form_issues_handler
actiondo_action( 'otter_form_issues_handler', $form_data ); -
product_neve_license_status
filterapply_filters( 'product_neve_license_status', false ); -
product_otter_license_status
filterapply_filters( 'product_otter_license_status', false ); -
neve_has_block_editor_module
filterapply_filters( 'neve_has_block_editor_module', false ); -
otter_blocks_autoloader
filterapply_filters( 'otter_blocks_autoloader', $classnames ); -
apply_filters( 'otter_blocks_block_pattern_categories', $block_pattern_categories ); -
otter_blocks_css
filterapply_filters( 'otter_blocks_css', $block ); -
apply_filters( 'otter_blocks_evaluate_condition', true, $condition, $visibility ); -
apply_filters( 'otter_blocks_evaluate_dynamic_content_link', '', $data ); -
apply_filters( 'otter_blocks_evaluate_dynamic_content_media_content', $value, $data ); -
apply_filters( 'otter_blocks_evaluate_dynamic_content_media_server', $path, $request ); -
apply_filters( 'otter_blocks_evaluate_dynamic_content_text', $data['default'], $data ); -
apply_filters( 'otter_blocks_google_fonts_url', $fonts_url ); -
otter_blocks_plugin_update
actiondo_action( 'otter_blocks_plugin_update' ); -
otter_blocks_posts_author
filterapply_filters( 'otter_blocks_posts_author', $posted_by ); -
otter_blocks_posts_fields
filterapply_filters( 'otter_blocks_posts_fields', '', $attributes, $id, $element ); -
apply_filters( 'otter_blocks_recaptcha_api_url', 'https://www.google.com/recaptcha/api.js' ); -
apply_filters( 'otter_blocks_recaptcha_verify_url', 'https://www.google.com/recaptcha/api/siteverify' ); -
otter_blocks_register_blocks
filterapply_filters( 'otter_blocks_register_blocks', self::$blocks ); -
otter_blocks_register_css
filterapply_filters( 'otter_blocks_register_css', self::$blocks_classes ); -
apply_filters( 'otter_blocks_register_dynamic_blocks', $dynamic_blocks ); -
apply_filters( 'otter_blocks_review_block_schema', $json, $attributes ); -
apply_filters( 'otter_blocks_review_block_woocommerce', $attributes ); -
do_action( 'otter_blocks_stripe_checkout_success', $attributes, $this->stripe_api, $session_id ); -
apply_filters( 'otter_blocks_turnstile_api_url', 'https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit' ); -
apply_filters( 'otter_blocks_turnstile_verify_url', 'https://challenges.cloudflare.com/turnstile/v0/siteverify' ); -
apply_filters( 'otter_form_anti_spam_validation', $form_data ); -
otter_form_email_build_body
filterapply_filters( 'otter_form_email_build_body', $email_message ); -
apply_filters( 'otter_form_email_build_body_error', $email_message ); -
apply_filters( 'otter_form_email_build_subject', $email_subject, $form_data ); -
apply_filters( 'otter_form_email_render_body_error', $form_data ); -
otter_form_email_render_head
filterapply_filters( 'otter_form_email_render_head', $form_data ); -
do_action( 'otter_form_on_submission_confirmed', $form_data ); -
otter_form_record_confirm
filterapply_filters( 'otter_form_record_confirm', $response, $request ); -
apply_filters( 'otter_form_session_confirmation', $session ); -
otter_form_validate_form
filterapply_filters( 'otter_form_validate_form', $form_data ); -
apply_filters( 'otter_fse_onboarding_templates', $templates ); -
otter_onboarding_data
filterapply_filters( 'otter_onboarding_data', array( 'version' => OTTER_BLOCKS_VERSION, 'assetsPath' => OTTER_BLOCKS_URL . 'assets/', 'supportedSteps' => $this->get_templates_types(), 'logo' => $this->get_theme_logo(), 'license' => apply_filters( 'product_otter_license_key', 'free' ), 'rootUrl' => get_site_url(), 'dashboardUrl' => get_admin_url(), 'isDev' => defined( 'ENABLE_OTTER_PRO_DEV' ), 'userEmail' => wp_get_current_user()->user_emai... ); -
do_action( 'otter_register_form_providers', array( 'default' => $default_provider, 'sendinblue' => $sendinblue_provider, 'mailchimp' => $mailchimp_provider, ) ); -
otter_select_form_provider
filterapply_filters( 'otter_select_form_provider', $form_data ); -
product_otter_license_plan
filterapply_filters( 'product_otter_license_plan', 0 ); -
styles_inline_size_limit
filterapply_filters( 'styles_inline_size_limit', 20000 ); -
the_content
filterapply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) ); -
apply_filters( 'themeisle_gutenberg_blocks_enqueue_assets', array() ); -
apply_filters( 'themeisle_gutenberg_currency_symbols', array( 'AED' => 'د.إ', 'AFN' => '؋', 'ALL' => 'L', 'AMD' => 'AMD', 'ANG' => 'ƒ', 'AOA' => 'Kz', 'ARS' => '$', 'AUD' => '$', 'AWG' => 'Afl.', 'AZN' => 'AZN', 'BAM' => 'KM', 'BBD' => '$', 'BDT' => '৳ ', 'BGN' => 'лв.', 'BHD' => '.د.ب', 'BIF' => 'Fr', 'BMD' => '$', 'BND' => '$', 'BOB' => 'Bs.', 'BRL' => 'R$', 'BS... ); -
apply_filters( 'themeisle_gutenberg_posts_block_query', $args, $attributes ); -
apply_filters( 'themeisle_products_deal_priority', array() ); -
themeisle_sdk_announcements
filterapply_filters( 'themeisle_sdk_announcements', array() ); -
themeisle_sdk_secret_masking
filterapply_filters( 'themeisle_sdk_secret_masking', apply_filters( 'product_otter_license_key', '' ) );
Generated from Otter Blocks'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: