Make WordPress Core

Opened 22 months ago

Last modified 22 months ago

#49708 new feature request

Add a new function get_page_by_guid

Reported by: killua99 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:


We have two different functions to get a post base from another field rather than ID get_page_by_path and get_page_by_title. When working with RESTful API working with unique identifier could be more handy than auto incremental or a path that could change.

I propose to build a function named get_page_by_guid and help developers to search a Post more accurate with guid.

Change History (1)

This ticket was mentioned in PR #203 on WordPress/wordpress-develop by killua99.

22 months ago

Hi there! Thanks for contributing to WordPress!

Pull Requests in this GitHub repository must be linked to a ticket in the WordPress Core Trac instance (https://core.trac.wordpress.org), and are only used for code review. No pull requests will be merged on GitHub.

See the WordPress Handbook page on using PRs for Code Review more information: https://make.wordpress.org/core/handbook/contribute/git/github-pull-requests-for-code-review/

If this is your first time contributing, you may also find reviewing these guides first to be helpful:


New function get_post_by_guid

Trac ticket: https://core.trac.wordpress.org/ticket/49708

Note: See TracTickets for help on using tickets.