Otter Blocks icon
Page Builders & Blocks

Otter Blocks hooks reference

  • By Themeisle
  • v3.2.11 New
  • Updated

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.

functions.phpyour child theme
// 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

  • inc/server/class-ai-backend-resolver.php line 64
    /**
     * Filters the effective AI backend used by Otter AI features.
     */
    apply_filters( 'otter_ai_backend', $resolved );
  • inc/server/class-ai-backend-resolver.php line 87
    /**
     * Filters the available Otter AI backend strategies.
     */
    apply_filters( 'otter_ai_backends', $backends );
  • inc/server/class-otter-openai-backend.php line 71
    /**
     * 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 );
  • inc/server/class-ai-client-adaptor.php line 82
    /**
     * Filters whether the WP AI Client is considered available for Otter AI
     * features.
     */
    apply_filters( 'otter_ai_client_available', $available );
  • inc/server/class-otter-openai-backend.php line 62
    /**
     * Filters the OpenAI model used for Otter's OpenAI requests.
     */
    apply_filters( 'otter_ai_otter_openai_model', isset( $payload['model'] ) ? (string) $payload['model'] : '', $payload );
  • inc/server/class-otter-openai-backend.php line 47
    /**
     * Filters the OpenAI-shaped payload before Otter sends it to OpenAI.
     */
    apply_filters( 'otter_ai_otter_openai_payload', $payload );
  • inc/server/class-otter-openai-backend.php line 101
    /**
     * Filters the HTTP arguments used for Otter's OpenAI request.
     */
    apply_filters( 'otter_ai_otter_openai_request_args', $request_args, $payload );
  • inc/server/class-otter-openai-backend.php line 163
    /**
     * Filters the decoded OpenAI response before returning it to Otter callers.
     */
    apply_filters( 'otter_ai_otter_openai_response', $body, $payload );
  • inc/server/class-ai-client-adaptor.php line 112
    /**
     * Filter the HTTP timeout (in seconds) for AI generation requests.
     */
    apply_filters( 'otter_ai_request_timeout', self::DEFAULT_REQUEST_TIMEOUT );
  • inc/plugins/class-dynamic-content.php line 1267
    /**
     * 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 );
  • inc/server/class-form-server.php line 316
    /**
     * Apply additional actions before using the main handler function for
     * submitting.
     */
    apply_filters( 'otter_form_data_preparation', $form_data );
  • inc/server/class-form-server.php line 337
    /**
     * 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 );
  • inc/class-main.php line 645 · used in 7 places
    apply_filters( 'product_otter_license_key', false );
  • inc/css/blocks/class-flip-css.php line 163 · used in 6 places
    apply_filters( 'otter_apply_dynamic_image', $value['url'] );
  • inc/class-registration.php line 399 · used in 3 places
    do_action( 'themeisle_internal_page', OTTER_PRODUCT_SLUG, 'editor' );
  • inc/plugins/class-dashboard.php line 521 · used in 2 places
    apply_filters( 'otter_dashboard_data', $global_data );
  • inc/plugins/class-form-submissions.php line 722 · used in 2 places
    do_action( 'otter_form_after_submit', $form_data );
  • inc/integrations/class-form-email.php line 92 · used in 2 places
    apply_filters( 'otter_form_email_render_body', $form_data );
  • inc/server/class-form-server.php line 326 · used in 2 places
    do_action( 'otter_form_issues_handler', $form_data );
  • inc/class-pro.php line 30 · used in 2 places
    apply_filters( 'product_neve_license_status', false );
  • inc/class-main.php line 646 · used in 2 places
    apply_filters( 'product_otter_license_status', false );
  • inc/class-pro.php line 30
    apply_filters( 'neve_has_block_editor_module', false );
  • inc/class-main.php line 96
    apply_filters( 'otter_blocks_autoloader', $classnames );
  • inc/class-patterns.php line 106
    apply_filters( 'otter_blocks_block_pattern_categories', $block_pattern_categories );
  • inc/class-base-css.php line 477
    apply_filters( 'otter_blocks_css', $block );
  • inc/plugins/class-block-conditions.php line 260
    apply_filters( 'otter_blocks_evaluate_condition', true, $condition, $visibility );
  • inc/plugins/class-dynamic-content.php line 688
    apply_filters( 'otter_blocks_evaluate_dynamic_content_media_content', $value, $data );
  • inc/server/class-dynamic-content-server.php line 264
    apply_filters( 'otter_blocks_evaluate_dynamic_content_media_server', $path, $request );
  • inc/plugins/class-dynamic-content.php line 853
    apply_filters( 'otter_blocks_evaluate_dynamic_content_text', $data['default'], $data );
  • inc/css/class-block-frontend.php line 198
    apply_filters( 'otter_blocks_google_fonts_url', $fonts_url );
  • inc/class-main.php line 586
    do_action( 'otter_blocks_plugin_update' );
  • inc/render/class-posts-grid-block.php line 211
    apply_filters( 'otter_blocks_posts_author', $posted_by );
  • inc/render/class-posts-grid-block.php line 267
    apply_filters( 'otter_blocks_posts_fields', '', $attributes, $id, $element );
  • inc/class-registration.php line 664
    apply_filters( 'otter_blocks_recaptcha_api_url', 'https://www.google.com/recaptcha/api.js' );
  • inc/server/class-form-server.php line 1103
    apply_filters( 'otter_blocks_recaptcha_verify_url', 'https://www.google.com/recaptcha/api/siteverify' );
  • inc/class-registration.php line 951
    apply_filters( 'otter_blocks_register_blocks', self::$blocks );
  • inc/class-base-css.php line 153
    apply_filters( 'otter_blocks_register_css', self::$blocks_classes );
  • inc/class-registration.php line 906
    apply_filters( 'otter_blocks_register_dynamic_blocks', $dynamic_blocks );
  • inc/render/class-review-block.php line 394
    apply_filters( 'otter_blocks_review_block_schema', $json, $attributes );
  • inc/render/class-review-block.php line 37
    apply_filters( 'otter_blocks_review_block_woocommerce', $attributes );
  • inc/render/class-stripe-checkout-block.php line 139
    do_action( 'otter_blocks_stripe_checkout_success', $attributes, $this->stripe_api, $session_id );
  • inc/class-registration.php line 666
    apply_filters( 'otter_blocks_turnstile_api_url', 'https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit' );
  • inc/server/class-form-server.php line 1100
    apply_filters( 'otter_blocks_turnstile_verify_url', 'https://challenges.cloudflare.com/turnstile/v0/siteverify' );
  • inc/server/class-form-server.php line 309
    apply_filters( 'otter_form_anti_spam_validation', $form_data );
  • inc/server/class-form-server.php line 479
    apply_filters( 'otter_form_email_build_body', $email_message );
  • inc/server/class-form-server.php line 800
    apply_filters( 'otter_form_email_build_body_error', $email_message );
  • inc/server/class-form-server.php line 476
    apply_filters( 'otter_form_email_build_subject', $email_subject, $form_data );
  • inc/integrations/class-form-email.php line 214
    apply_filters( 'otter_form_email_render_body_error', $form_data );
  • inc/integrations/class-form-email.php line 91
    apply_filters( 'otter_form_email_render_head', $form_data );
  • inc/plugins/class-form-submissions.php line 712
    do_action( 'otter_form_on_submission_confirmed', $form_data );
  • inc/server/class-form-server.php line 415
    apply_filters( 'otter_form_record_confirm', $response, $request );
  • inc/server/class-form-server.php line 206
    apply_filters( 'otter_form_session_confirmation', $session );
  • inc/server/class-form-server.php line 290
    apply_filters( 'otter_form_validate_form', $form_data );
  • inc/plugins/class-fse-onboarding.php line 168
    apply_filters( 'otter_fse_onboarding_templates', $templates );
  • inc/plugins/class-fse-onboarding.php line 255
    apply_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... );
  • inc/server/class-form-server.php line 121
    do_action( 'otter_register_form_providers', array( 'default' => $default_provider, 'sendinblue' => $sendinblue_provider, 'mailchimp' => $mailchimp_provider, ) );
  • inc/server/class-form-server.php line 440
    apply_filters( 'otter_select_form_provider', $form_data );
  • inc/class-main.php line 644
    apply_filters( 'product_otter_license_plan', 0 );
  • inc/css/class-block-frontend.php line 347
    apply_filters( 'styles_inline_size_limit', 20000 );
  • the_content

    filter
    inc/plugins/class-dynamic-content.php line 876
    apply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) );
  • inc/css/class-block-frontend.php line 708
    apply_filters( 'themeisle_gutenberg_blocks_enqueue_assets', array() );
  • inc/render/class-review-block.php line 405
    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... );
  • inc/render/class-posts-grid-block.php line 400
    apply_filters( 'themeisle_gutenberg_posts_block_query', $args, $attributes );
  • inc/plugins/class-limited-offers.php line 281
    apply_filters( 'themeisle_products_deal_priority', array() );
  • inc/plugins/class-limited-offers.php line 51
    apply_filters( 'themeisle_sdk_announcements', array() );
  • inc/plugins/class-dashboard.php line 1224
    apply_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: