|
/ Documentation /Developer Documentation/Action Hooks/ srfm_register_additional_blocks

srfm_register_additional_blocks

Description

This filter allows you to register additional blocks in the SureForms Editor.

Parameters

$blocks (bool) – Array of additional blocks

Hook Source

PHP
/**
* hook source
 */
apply_filters( 'srfm_register_additional_blocks', [] );

Hook Usage

PHP
add_filter( 'srfm_register_additional_blocks', 'your_custom_function' )

function your_custom_function( $blocks ) {
  //Add code here
    return $blocks;
}

Hook Example

PHP
add_filter( 'srfm_register_additional_blocks', 'your_custom_function' )

function your_custom_function( $blocks ) {
  //Add code here
   $blocks = [];
    return $blocks;
}

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top