WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_wp_unique_post_slug

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php apply_filters 5007 /**
* Filters the post slug before it is generated to be unique.
*
* Returning a non-null value will short-circuit the
* unique slug generation, returning the passed value instead.
*
* @since 5.1.0
*
* @param string|null $override_slug Short-circuit return value.
* @param string $slug The desired slug (post_name).
* @param int $post_ID Post ID.
* @param string $post_status The post status.
* @param string $post_type Post type.
* @param int $post_parent Post parent ID.
*/

Hook Parameters

Parameter Type Name Description
string|null $override_slug Short-circuit return value.
string $slug The desired slug (post_name).
int $post_ID Post ID.
string $post_status The post status.
string $post_type Post type.
int $post_parent Post parent ID.