wpseek.com
A WordPress-centric search engine for devs and theme authors



_truncate_post_slug › WordPress Function

Since3.6.0
Deprecated7.2.0
› _truncate_post_slug ( $slug, $length = 200 )
Parameters: (2)
  • (string) $slug The slug to truncate.
    Required: Yes
  • (int) $length Optional. Max length of the slug. Default 200 (characters).
    Required: No
    Default: 200
See:
Returns:
  • (string) The truncated slug.
Defined at:
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 );
}