wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



_truncate_post_slug › WordPress Function

Desde3.6.0
Obsoleto7.2.0
› _truncate_post_slug ( $slug, $length = 200 )
Parâmetros: (2)
  • (string) $slug The slug to truncate.
    Required: Yes
  • (int) $length Optional. Max length of the slug. Default 200 (characters).
    Required: No
    Padrão: 200
Ver:
Retorna:
  • (string) The truncated slug.
Definido em:
Codex:

Truncates a post slug.



Fonte

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

	return wp_truncate_slug( $slug, $length );
}