su/config/supported_blocks

The shortcodes-ultimate su/config/supported blocks hook.

Published Date - February 15, 2021

Description

return apply_filters(
	'su/config/supported_blocks',
	array(
		'core/paragraph' => __( 'Paragraph', 'shortcodes-ultimate' ),
		'core/shortcode' => __( 'Shortcode', 'shortcodes-ultimate' ),
		'core/freeform'  => __( 'Classic', 'shortcodes-ultimate' ),
	)
);

Parameters

  1. $array, core/shortcode => __, core/freeform => __)


Usage

The following example is for adding a hook callback.

// define the su/config/supported_blocks callback 
function custom_su_config_supported_blocks( $array, core/shortcode => __, core/freeform => __) ){ 
   //custom code here
    return $array, core/shortcode => __, core/freeform => __)
} 

//add the action 
add_filter('su/config/supported_blocks', 'custom_su/config/supported_blocks', 10, 1)

Defined

The filter is defined in the following location(s).

shortcodes-ultimate/includes/config/supported-blocks.php

return apply_filters(
	'su/config/supported_blocks',
	array(
		'core/paragraph' => __( 'Paragraph', 'shortcodes-ultimate' ),
		'core/shortcode' => __( 'Shortcode', 'shortcodes-ultimate' ),
		'core/freeform'  => __( 'Classic', 'shortcodes-ultimate' ),
	)
);