apply_filters( 'run_wptexturize', bool $run_texturize )
- Since
- 4.0.0
Filters whether to skip running wptexturize().
Description
Returning false from the filter will effectively short-circuit wptexturize() and return the original text passed to the function instead.
The filter runs only once, the first time wptexturize() is called.
Compatibility
- WordPress
- since 4.0.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$run_texturizebool- Whether to short-circuit wptexturize().
Where this hook fires · 1
wp-includes/formatting.php:78wptexturize()
Source code
* @since 4.0.0 * * @see wptexturize() * * @param bool $run_texturize Whether to short-circuit wptexturize(). */ $run_texturize = apply_filters( 'run_wptexturize', $run_texturize ); if ( false === $run_texturize ) { return $text; } /* translators: Opening curly double quote. */ $opening_quote = _x( '“', 'opening curly double quote' );Changelog
Introduced in 4.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.