Detecting current page from class method

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().

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)