wptexturize_primes


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

Parameters:
  • (string) $haystack The plain text to be searched.
  • (string) $needle The character to search for such as ' or ".
  • (string) $prime The prime char to use for replacement.
  • (string) $open_quote The opening quote char. Opening quote replacement must be accomplished already.
  • (string) $close_quote The closing quote char to use for replacement.
Returns:
  • (string) The $haystack value after primes and quotes replacements.
Defined at:

Description

Implements a logic tree to determine whether or not "7'." represents seven feet, then converts the special char into either a prime char or a closing quote char.

Related Functions

wptexturize, _wptexturize_pushpop_element, wp_get_ext_types, _get_wptexturize_split_regex, wp_get_image_mime

Top Google Results

User discussions

wpseek mobile