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

  • (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.
  • (string) The $haystack value after primes and quotes replacements.
Defined at:


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, wp_get_image_mime, _get_wptexturize_split_regex

Top Google Results

User discussions

wpseek mobile