WordPress как на ладони
wordpress jino
фильтр не описан

run_wptexturize хук-фильтр . WP 4.0.0

Filters whether to skip running wptexturize().

Passing false to the filter will effectively short-circuit wptexturize(). returning the original text passed to the function instead.

The filter runs only once, the first time wptexturize() is called.

Использование

add_filter( 'run_wptexturize', 'filter_function_name_8938' );
function filter_function_name_8938( $run_texturize ){
	// filter...

	return $run_texturize;
}
$run_texturize(bool)
Whether to short-circuit wptexturize().

Связи хука

Используется в: wptexturize()

Кусок кода с хуком

Фрагмент из: wp-includes/formatting.php WP 4.9
...
	if ( $reset || ! isset( $static_characters ) ) {
		/**
		 * Filters whether to skip running wptexturize().
		 *
		 * Passing false to the filter will effectively short-circuit wptexturize().
		 * returning the original text passed to the function instead.
		 *
		 * The filter runs only once, the first time wptexturize() is called.
		 *
		 * @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' );
		/* translators: closing curly double quote */
		$closing_quote = _x( '”', 'closing curly double quote' );

		/* translators: apostrophe, for example in 'cause or can't */
		$apos = _x( '’', 'apostrophe' );

		/* translators: prime, for example in 9' (nine feet) */
		$prime = _x( '′', 'prime' );
		/* translators: double prime, for example in 9" (nine inches) */
...