public function is(string $page = ''): bool
    {
        if (!$this->Wp->is_admin) {
            return false; // Not applicable.
        } elseif (!($current = $this->current())) {
            return false; // Nope.
        }
        if (!$page) {
            return true; // Simple check.
        }
        if ($page[0] === '/') {
            $regex = $page; // Treat as regex.
        } else {
            $regex = '/^'.$this->c::wregxFrag($page, '-').'$/ui';
        }
        return (bool) preg_match($regex, $current);
    }
public function is(string $page = ''): bool
    {
        if (!$this->Wp->is_admin) {
            return false; // Not applicable.
        } elseif (!($current = $this->current())) {
            return false; // Nope.
        }
        if (!$page) {
            return true; // Simple check.
        }
        if ($page[0] === '/') {
            $regex = $page; // Treat as regex.
        } else {
            $regex = '/^'.$this->c::wregxFrag($page, '-').'$/ui';
        }
        return (bool) preg_match($regex, $current);
    }
public function is ( string $ page = '' ) : bool { if ( ! $ this -> Wp -> is_admin ) { return false ; // Not applicable. } elseif ( ! ( $ current = $ this -> current ( ) ) ) { return false ; // Nope. } if ( ! $ page ) { return true ; // Simple check. } if ( $ page [ 0 ] === '/' ) { $ regex = $ page ; // Treat as regex. } else { $ regex = '/^' . $ this -> c :: wregxFrag ( $ page , '-' ) . '$/ui' ; } return ( bool ) preg_match ( $ regex , $ current ) ; }
Is a menu page?

@since 160524 Menu page utils.

@param string $page Page to check (optional).

- `*` = Zero or more chars != `-`.
- `**` = Zero or more chars of any kind.
- Check is always caSe insensitive by default.
- If `$page` begins with `/` it is treated as regex.

@return bool True if a menu page.
Is a menu page?