wpseek.com
WordPress开发者和主题制作者的搜索引擎



_truncate_post_slug › WordPress Function

Since3.6.0
已弃用7.2.0
› _truncate_post_slug ( $slug, $length = 200 )
参数: (2)
  • (string) $slug The slug to truncate.
    Required: Yes
  • (int) $length Optional. Max length of the slug. Default 200 (characters).
    Required: No
    默认: 200
查看:
返回:
  • (string) The truncated slug.
定义在:
文档:

Truncates a post slug.



源码

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

	return wp_truncate_slug( $slug, $length );
}