WPDev.one
Core Function
View Source on Trac ↗

wptexturize_primes()

wptexturize_primes( mixed $haystack, mixed $needle, mixed $prime, mixed $open_quote, mixed $close_quote )

Implements a logic tree to determine whether or not "7'." represents seven feet,

Parameters 5 required

Name / Type Description
$haystack
string

The plain text to be searched.

Required
$needle
string

The character to search for such as ' or ".

Required
$prime
string

The prime char to use for replacement.

Required
string

$open_quote The opening quote char. Opening quote replacement must be accomplished already.

Required
$close_quote
string

The closing quote char to use for replacement.

Required

Return Value

(string)
The $haystack value after primes and quotes replacements.

Function Information

Since Version
4.3.0
Source File
wp-includes/formatting.php
Advertisement