Core Function
View Source on Trac ↗ _find_post_by_old_slug()
_find_post_by_old_slug( mixed $post_type ) Find the post ID for redirecting an old slug.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $post_type string | The current post type based on the query vars. Required |
Return Value
(int)
The Post ID.
Function Information
Since Version
4.9.3
Source File
wp-includes/query.php
Advertisement