• How would I add a menu item to my wp menu with a function in my theme’s function.php? I’ve found the following snippet online which works but not to exactly how I want it.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The function above uses wp_login_url & wp_logout_url. I’ve created a custom login page which I want to use, how can I edit the code above to use the custom page (page_id=#) instead and redirect to a (page_id=#) after successful login? Also how can I add a class to the function to style the menu link? Thanks!

  • The topic ‘add a menu item to wp menu’ is closed to new replies.