Crowdsignal Forms icon
Forms

Crowdsignal Forms hooks reference

  • By Automattic
  • v1.8.3
  • Updated

Crowdsignal Forms 1.8.3 has 9 actions and 15 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 Crowdsignal Forms fires an action
add_action( 'crowdsignal_forms_after_setup_hooks', function( $object ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Crowdsignal Forms is about to use
add_filter( 'crowdsignal_forms_allow_activation_redirect', 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

  • includes/admin/class-crowdsignal-forms-admin-notices.php line 158
    /**
     * Handle the display of the admin notice.
     */
    do_action( "crowdsignal_forms_admin_notice_{$notice}" );
  • includes/class-crowdsignal-forms.php line 275
    /**
     * Set any other hooks, passing this instance.
     */
    do_action( 'crowdsignal_forms_after_setup_hooks', $this );
  • includes/class-crowdsignal-forms.php line 194
    /**
     * Allow plugins to skip the activation redirect.
     */
    apply_filters( 'crowdsignal_forms_allow_activation_redirect', true );
  • includes/gateways/class-api-gateway.php line 443
    /**
     * Filter the api base url.
     */
    apply_filters( 'crowdsignal_forms_api_base_url', self::API_BASE_URL );
  • includes/gateways/class-api-gateway.php line 453
    /**
     * Add any extra request headers here.
     */
    apply_filters( 'crowdsignal_forms_api_request_headers', array( 'content-type' => 'application/json', 'user-agent' => ! empty( $_SERVER['HTTP_USER_AGENT'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ) : 'unknown', 'x-forwarded-for' => ! empty( $_SERVER['REMOTE_ADDR'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ) : '', ) );
  • includes/admin/class-crowdsignal-forms-admin-notices.php line 138
    /**
     * Allows crowdsignal related plugins to set up their notice hooks.
     */
    do_action( 'crowdsignal_forms_init_admin_notices' );
  • includes/synchronization/class-poll-block-synchronizer.php line 249
    /**
     * Sync failed for some reason. We might want to do something about this by
     * hooking into this action.
     */
    do_action( 'crowdsignal_forms_poll_sync_exception', $sync_exception, $this );
  • includes/class-crowdsignal-forms.php line 297
    /**
     * Any additional controllers from companion plugins can be registered using
     * this hook.
     */
    do_action( 'crowdsignal_forms_register_rest_api_routes', $this );
  • includes/admin/class-admin-hooks.php line 103
    /**
     * Should we synchronize poll blocks in comments too?
     */
    apply_filters( 'crowdsignal_forms_should_sync_comment_polls', true );
  • includes/admin/class-crowdsignal-forms-admin-notices.php line 149
    /**
     * Allows suppression of individual admin notices.
     */
    apply_filters( "crowdsignal_forms_show_admin_notice_{$notice}", true );
  • includes/synchronization/class-survey-block-synchronizer.php line 385
    /**
     * Sync failed for some reason. We might want to do something about this by
     * hooking into this action.
     */
    do_action( 'crowdsignal_forms_survey_sync_exception', $sync_exception, $this );
  • includes/logging/class-webservice-logger.php line 75
    /**
     * Record the webservice event using some form of "backend".
     */
    do_action( 'crowdsignal_forms_webservice_log_event', $name, $data );
  • includes/logging/class-webservice-logger.php line 64
    /**
     * Figure if we should log anything.
     */
    apply_filters( 'crowdsignal_forms_webservice_logging_enabled', false );
  • includes/frontend/class-crowdsignal-forms-block.php line 75
    apply_filters( 'crowdsignal_forms_branding_enabled', $enable_branding );
  • includes/gateways/class-api-gateway.php line 557
    do_action( 'crowdsignal_forms_failed_connection', $ex->getMessage() ? $ex->getMessage() : 'Unknown error' );
  • includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php line 271
    apply_filters( 'crowdsignal_forms_feedback_nonce', self::NONCE );
  • includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php line 255
    apply_filters( 'crowdsignal_forms_feedback_nonce_check', $nonce, self::NONCE );
  • includes/gateways/class-api-gateway.php line 548
    do_action( 'crowdsignal_forms_get_account_info', $response_data );
  • includes/auth/class-crowdsignal-forms-api-authenticator.php line 42
    apply_filters( 'crowdsignal_forms_get_auth_provider', new Default_Api_Auth_Provider() );
  • includes/frontend/blocks/class-crowdsignal-forms-nps-block.php line 209
    apply_filters( 'crowdsignal_forms_nps_nonce', self::NONCE );
  • includes/frontend/blocks/class-crowdsignal-forms-nps-block.php line 226
    apply_filters( 'crowdsignal_forms_nps_nonce_check', $nonce, self::NONCE );
  • includes/admin/class-crowdsignal-forms-settings.php line 134
    apply_filters( 'crowdsignal_forms_settings', array( 'general' => array( __( 'General', 'crowdsignal-forms' ), array( array( 'name' => 'crowdsignal_api_key', 'std' => '', 'label' => __( 'Enter Crowdsignal API Key', 'crowdsignal-forms' ), 'attributes' => array(), ), ), ), ) );
  • includes/admin/class-admin-hooks.php line 71
    apply_filters( 'crowdsignal_forms_show_admin', true );
  • includes/frontend/class-crowdsignal-forms-blocks-assets.php line 83
    apply_filters( 'crowdsignal_forms_translations_path', $this->include_path( '/languages' ) );

Generated from Crowdsignal Forms'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: