Your Time:
Our Time:
← Back to discussions

Login in menu

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 3 replies, 2 voices, and was last updated 7 years, 3 months ago by Fem.

  • 2019-05-23 at 9:58 pm
    Unknown Support Status
    #25391
    bruniki
    Participant
    • Topics: 7
    • Replies: 23
    • Total posts: 30
    • Post count: 28

    I don’t want this option in menu. How can I eliminate this menu?

    2019-05-24 at 2:34 pm
    #25394
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Edit the cook-pro/cook-pro.php file located in the plugins directory and find the below code which you can remove it

    // Adds login logout to the admin menu
    if ( 'on' !== get_option( 'rcp_login_link' ) ) {
    	add_filter( 'wp_nav_menu_items', 'cookpro_add_login_logout_link', 10, 2 );
    	function cookpro_add_login_logout_link( $items, $args ) {
    		ob_start();
    		wp_loginout( 'index.php' );
    		$loginoutlink = ob_get_contents();
    		ob_end_clean();
    		$items .= '<li>' . $loginoutlink . '</li>';
    		return $items;
    	}
    }
    2019-05-24 at 8:55 pm
    Unknown Support Status
    #25398
    bruniki
    Participant
    • Topics: 7
    • Replies: 23
    • Total posts: 30
    • Post count: 28

    OK Thanks
    I have to do this everytime with a new cool-pro verion?

    2019-05-29 at 2:35 pm
    #25431
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Yes, you have to but maybe in the future, we will consider adding a feature to disable or enable the login from the menu.

The topic ‘Login in menu’ is closed to new replies.