WPDev.one
Core Function
View Source on Trac ↗

_truncate_post_slug()

_truncate_post_slug( mixed $slug, mixed $length = 200 )

Truncates a post slug.

Parameters 1 required

Name / Type Description
$slug
string

The slug to truncate.

Required
$length
int

Optional. Max length of the slug. Default 200 (characters).

Return Value

(string)
The truncated slug.

Function Information

Since Version
3.6.0
Source File
wp-includes/post.php
Advertisement