Skip to content

Conversation

@dlh01
Copy link
Member

@dlh01 dlh01 commented Feb 26, 2021

Fixes #532.

Support for custom post types was added to `url_to_postid()` in WordPress
3.7. According to its own docs and the site where it came from,
`fm_url_to_post_id()` was intended to work around the previous lack of
support for CPTs.

Also corrects the return type for `fm_url_to_post_id()`, which is
important in this case for an assurance of compatibility with
`url_to_postid()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider deprecating fm_url_to_post_id()

2 participants