Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Yoast seo sub_menu not access!

$
0
0

Replies: 0

Due to some demand,I hide the menu wpseo_dashboard:
remove_menu_page( ‘wpseo_dashboard’ ); // SEO

then i create custom menu:


add_menu_page(
                'SEO',
                'SEO',
                'tn_setting_options',
                'manage-extend',
                '',
                'dashicons-megaphone',
                '35'
            );
            add_submenu_page(
                'manage-extend',
                'SEO',
                'SEO',
                'tn_setting_options',
                'manage-extend',
                array( $this, 'loadPage' )
            );

/**
     * Load admin page
     */
	public function loadPage()
    {
        $page = filter_input( INPUT_GET, 'page' );

        switch ( $page ) {
            case 'manage-extend':
                header( 'Location: /wp-admin/admin.php?page=wpseo_titles' );

                break;
        }
    }

however,

When i visit the menu SEO, he hints can not access, but i have already opened the yoast seo right and i’m not sure what this is causing …


Viewing all articles
Browse latest Browse all 59525

Trending Articles