wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_truncate_post_slug › WordPress Function

Da3.6.0
Deprecato7.2.0
› _truncate_post_slug ( $slug, $length = 200 )
Parametri: (2)
  • (string) $slug The slug to truncate.
    Richiesto: Sì
  • (int) $length Optional. Max length of the slug. Default 200 (characters).
    Richiesto: No
    Default: 200
Vedi:
Ritorna:
  • (string) The truncated slug.
Definito a:
Codex:

Truncates a post slug.



Sorgenti

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

	return wp_truncate_slug( $slug, $length );
}