wpseo_standardize_whitespace

Standardize whitespace in a string.

Description

(string) wpseo_standardize_whitespace( (string) $string ); 

Returns (string)

Parameters (1)

0. $string (string)
String input to standardize.

Usage

  1. if ( !function_exists( 'wpseo_standardize_whitespace' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/inc/wpseo-functions-deprecated.php'; 
  3.  
  4. // String input to standardize. 
  5. $string = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpseo_standardize_whitespace($string); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/wpseo-functions-deprecated.php  
  1. function wpseo_standardize_whitespace( $string ) { 
  2. _deprecated_function( __FUNCTION__, 'WPSEO 1.6.1', 'WPSEO_Utils::standardize_whitespace()' ); 
  3.  
  4. return WPSEO_Utils::standardize_whitespace( $string );