WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Filter Reference/run wptexturize

Description

run_wptexturize 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.

Parameters

$run_wptexturize
(bool) (required) Whether to short-circuit wptexturize().
Default: true(1)

Examples

Use __return_false() to turn off wptexturize().

add_filter( 'run_wptexturize', '__return_false' );

Change Log

Since: 4.0

Source File

run_wptexturize is located in wp-includes/formatting.php

Related

See also index of Function Reference and index of Template Tags.