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.
Использование
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().
Список изменений
С версии 4.0.0 | Введена. |
Где вызывается хук
wp-includes/formatting.php 78
$run_texturize = apply_filters( 'run_wptexturize', $run_texturize );