INVP::sluggify( string $name )

Turns the name of something into a slug that WordPress will accept when creating objects like terms. WordPress slugs are described as containing only letters, numbers, and hyphens.


Parameters

$name

(string) (Required) The string to turn into a slug.


Return

(string) An alteration of $name that WordPress will accept as a term slug


Source

File: includes/class-invp.php

	 * @param  string $name The string to turn into a slug.
	 * @return string An alteration of $name that WordPress will accept as a term slug
	 */
	public static function sluggify( $name ) {
		if ( null === $name ) {