run_wptexturize
Filters whether to skip running wptexturize().
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.
Usage
add_filter( 'run_wptexturize', 'wp_kama_run_wptexturize_filter' );
/**
* Function for `run_wptexturize` filter-hook.
*
* @param bool $run_texturize Whether to short-circuit wptexturize().
*
* @return bool
*/
function wp_kama_run_wptexturize_filter( $run_texturize ){
// filter...
return $run_texturize;
}
- $run_texturize(true|false)
- Whether to short-circuit wptexturize().
Changelog
| Since 4.0.0 | Introduced. |
Where the hook is called
wp-includes/formatting.php 78
$run_texturize = apply_filters( 'run_wptexturize', $run_texturize );