su/config/default_settings

The shortcodes-ultimate su/config/default settings hook.

Published Date - February 15, 2021

Description

return apply_filters(
	'su/config/default_settings',
	array(
		'su_option_custom-formatting'    => 'on',
		'su_option_skip'                 => 'on',
		'su_option_prefix'               => 'su_',
		'su_option_custom-css'           => '',
		'su_option_supported_blocks'     => array(
			'core/paragraph',
			'core/shortcode',
			'core/freeform',
		),
		'su_option_generator_access'     => 'manage_options',
		'su_option_enable_shortcodes_in' => array( 'term_description' ),
		'su_option_hide_deprecated'      => 'on',
	)
);

Parameters

  1. $array, su_option_generator_access => manage_options, su_option_enable_shortcodes_in => array, su_option_hide_deprecated => on)


Usage

The following example is for adding a hook callback.

// define the su/config/default_settings callback 
function custom_su_config_default_settings( $array, su_option_generator_access => manage_options, su_option_enable_shortcodes_in => array, su_option_hide_deprecated => on) ){ 
   //custom code here
    return $array, su_option_generator_access => manage_options, su_option_enable_shortcodes_in => array, su_option_hide_deprecated => on)
} 

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

Defined

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

shortcodes-ultimate/includes/config/default-settings.php

return apply_filters(
	'su/config/default_settings',
	array(
		'su_option_custom-formatting'    => 'on',
		'su_option_skip'                 => 'on',
		'su_option_prefix'               => 'su_',
		'su_option_custom-css'           => '',
		'su_option_supported_blocks'     => array(
			'core/paragraph',
			'core/shortcode',
			'core/freeform',
		),
		'su_option_generator_access'     => 'manage_options',
		'su_option_enable_shortcodes_in' => array( 'term_description' ),
		'su_option_hide_deprecated'      => 'on',
	)
);