no_texturize_shortcodes WordPress Filter Hook

The no_texturize_shortcodes Wordpress hook is used to prevent the texturization of content within specified shortcodes. This can be useful for ensuring that content within shortcodes is displayed correctly, or for preventing the accidental transformation of shortcode content by the texturization process.

apply_filters( 'no_texturize_shortcodes', string[] $default_no_texturize_shortcodes ) #

Filters the list of shortcodes not to texturize.


Parameters

$default_no_texturize_shortcodes

(string[])An array of shortcode names.


Top ↑

More Information

By default, WordPress will automatically texturize all post/page content through the wptexturize() function, even content in shortcodes. The texturize process replaces “normal” quotes with “fancy” quotes (aka “smart” quotes or “curly” quotes). Sometimes this is NOT what you want… particularly if your shortcode must contain raw, preprocessed text.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More