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.
You may also like
Devs: Give your feedback on Plugin Directory Playground Previews
Devs: Give your feedback on Plugin Directory...