su_filter_disable_wptexturize

The shortcodes-ultimate su filter disable wptexturize function.

Published Date - February 15, 2021

Description

Disable wptexturize filter for nestable shortcodes.

su_filter_disable_wptexturize( $shortcodes );

Parameters

  1. $shortcodes


Usage

The following example is for adding a hook callback.

if ( !function_exists( 'su_filter_disable_wptexturize' ) ) {
    require_once ABSPATH . PLUGINDIR . 'shortcodes-ultimateshortcodes-ultimate/includes/filters.php';
}

// The input(s). 
$shortcodes = null;

// NOTICE! Understand what this does before running.
$result = su_filter_disable_wptexturize( $shortcodes );
            

Defined

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

shortcodes-ultimate/includes/filters.php

function su_filter_disable_wptexturize( $shortcodes ) {

	$prefix = su_get_shortcode_prefix();

	$exclude = array(
		$prefix . 'spoiler',
		$prefix . 'row',
		$prefix . 'column',
		$prefix . 'list',
		$prefix . 'note',
		$prefix . 'box',
		$prefix . 'quote',
	);

	return array_merge( $shortcodes, $exclude );

}