Core Function
View Source on Trac ↗ wp_check_for_changed_slugs()
wp_check_for_changed_slugs( mixed $post_id, mixed $post, mixed $post_before ) Checks for changed slugs for published post objects and save the old slug.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $post_id int | Post ID. Required |
| $post WP_Post | The post object. Required |
| $post_before WP_Post | The previous post object. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.1.0
Source File
wp-includes/post.php
Advertisement