https://wordpress.stackexchange.com/a/199997/86773
As the advice suggested here, switching my hook to “wp” instead of “init” allowed me to make the page comparison I wanted using is_page().
https://wordpress.stackexchange.com/a/199997/86773
As the advice suggested here, switching my hook to “wp” instead of “init” allowed me to make the page comparison I wanted using is_page().