wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



_truncate_post_slug › WordPress Function

Od3.6.0
Przestarzały7.2.0
› _truncate_post_slug ( $slug, $length = 200 )
Parametry: (2)
  • (string) $slug The slug to truncate.
    Wymagane: Tak
  • (int) $length Optional. Max length of the slug. Default 200 (characters).
    Wymagane: Nie
    Domyślny: 200
Zobacz:
Powrót:
  • (string) The truncated slug.
Zdefiniowane na:
Codex:

Truncates a post slug.



Źródło

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

	return wp_truncate_slug( $slug, $length );
}