src/admin/pages/AdminPage.php
protected function addActions ()
    {
        add_action(Hooks::ADMIN_MENU, array($this, 'addPage'));
        if ($this->currentlyOnPage()) {
            add_action(Hooks::ADMIN_INIT, [$this, 'adminInit']);
        }
    }
protected function addActions ()
    {
        add_action(Hooks::ADMIN_MENU, array($this, 'addPage'));
        if ($this->currentlyOnPage()) {
            add_action(Hooks::ADMIN_INIT, [$this, 'adminInit']);
        }
    }
protected function addActions ( ) { add_action ( Hooks :: ADMIN_MENU , array ( $ this , 'addPage' ) ) ; if ( $ this -> currentlyOnPage ( ) ) { add_action ( Hooks :: ADMIN_INIT , [ $ this , 'adminInit' ] ) ; } }
Sets up the WP hooks
Sets up the WP hooks