public function currentPostType(): string
    {
        if (!$this->Wp->is_admin) {
            return ''; // Not applicable.
        }
        return !empty($_GET['post_type'])
            ? $this->c::unslash((string) $_GET['post_type'])
            : $this->postTypeNow(); // Fallback on `$typenow`.
    }
public function currentPostType(): string
    {
        if (!$this->Wp->is_admin) {
            return ''; // Not applicable.
        }
        return !empty($_GET['post_type'])
            ? $this->c::unslash((string) $_GET['post_type'])
            : $this->postTypeNow(); // Fallback on `$typenow`.
    }
public function currentPostType ( ) : string { if ( ! $ this -> Wp -> is_admin ) { return '' ; // Not applicable. } return ! empty ( $ _GET [ 'post_type' ] ) ? $ this -> c :: unslash ( ( string ) $ _GET [ 'post_type' ] ) : $ this -> postTypeNow ( ) ; // Fallback on `$typenow`. }
Current menu page post type.

@since 160524 Menu page utils.

@return string Current menu page post type.
Current menu page post type .