wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_truncate_post_slug › WordPress Function

Depuis3.6.0
Dépréciée7.2.0
› _truncate_post_slug ( $slug, $length = 200 )
Paramètres: (2)
  • (string) $slug The slug to truncate.
    Requis: Oui
  • (int) $length Optional. Max length of the slug. Default 200 (characters).
    Requis: Non
    Défaut: 200
Voir:
Retourne:
  • (string) The truncated slug.
Défini(e) dans:
Codex:

Truncates a post slug.



Source

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

	return wp_truncate_slug( $slug, $length );
}