sanitize_title

sanitize_title

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('sanitize_title') is found 1 times:

  • /wp-includes/formatting.php line 2223
    	 * @param string $title     Sanitized title.
    	 * @param string $raw_title The title prior to sanitization.
    	 * @param string $context   The context for which the title is being sanitized.
    	 */
    	$title = apply_filters( 'sanitize_title', $title, $raw_title, $context );
    
    	if ( '' === $title || false === $title ) {
    		$title = $fallback_title;
    	}
    
    	return $title;