Filter hook 'no_texturize_shortcodes'

in WP Core File wp-includes/formatting.php at line 228

View Source

no_texturize_shortcodes

Filter Hook
Description
Filters the list of shortcodes not to texturize.

Hook Information

File Location wp-includes/formatting.php View on GitHub
Hook Type Filter
Line Number 228

Hook Parameters

Type Name Description
string[] $default_no_texturize_shortcodes An array of shortcode names.

Usage Examples

Basic Usage
<?php
// Hook into no_texturize_shortcodes
add_filter('no_texturize_shortcodes', 'my_custom_filter', 10, 1);

function my_custom_filter($default_no_texturize_shortcodes) {
    // Your custom filtering logic here
    return $default_no_texturize_shortcodes;
}

Source Code Context

wp-includes/formatting.php:228 - How this hook is used in WordPress core
<?php
 223  	 *
 224  	 * @since 2.8.0
 225  	 *
 226  	 * @param string[] $default_no_texturize_shortcodes An array of shortcode names.
 227  	 */
 228  	$no_texturize_shortcodes = apply_filters( 'no_texturize_shortcodes', $default_no_texturize_shortcodes );
 229  
 230  	$no_texturize_tags_stack       = array();
 231  	$no_texturize_shortcodes_stack = array();
 232  
 233  	// Look for shortcodes and HTML elements.

PHP Documentation

<?php
/**
	 * Filters the list of shortcodes not to texturize.
	 *
	 * @since 2.8.0
	 *
	 * @param string[] $default_no_texturize_shortcodes An array of shortcode names.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/formatting.php
Related Hooks

Related hooks will be displayed here in future updates.