get_page_by_title() deprecated

In WordPress 6.2, the get_page_by_title() function has been deprecated in favour of using WP_Query (#57041). Unlike the deprecated function, WP_Query can only be run after plugins and pluggable functions have loaded, on the plugins_loaded action or later.

This post was originally published on Make Core by Peter Wilson.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.