wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_truncate_post_slug › WordPress Function

Seit3.6.0
Veraltet7.2.0
› _truncate_post_slug ( $slug, $length = 200 )
Parameter: (2)
  • (string) $slug The slug to truncate.
    Erforderlich: Ja
  • (int) $length Optional. Max length of the slug. Default 200 (characters).
    Erforderlich: Nein
    Standard: 200
Siehe:
Gibt zurück:
  • (string) The truncated slug.
Definiert in:
Codex:

Truncates a post slug.



Quellcode

function _truncate_post_slug( $slug, $length = 200 ) {
	_deprecated_function( __FUNCTION__, '7.2.0', 'wp_truncate_slug()' );

	return wp_truncate_slug( $slug, $length );
}