add admin menu link custom wp


add_action( 'admin_menu', 'register_custom_menu_link' );
/**
 * @author    Brad Dalton
 * @example   http://wpsites.net/wordpress-admin/add-top-level-custom-admin-menu-link-in-dashboard-to-any-url/
 * @copyright 2014 WP Sites
 */
function register_custom_menu_link(){
    add_menu_page( 
      'custom menu link', 
      'Your Menu Link', 
      'manage_options', 
      'any-url', 
      'wpsites_custom_menu_link', 
      'dashicons-external', 3
    ); 
}

function wpsites_custom_menu_link(){
    wp_redirect( 'http://www.example.com', 301 ); 
	exit;
}

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
wp create menu page admin wp add page to admin bar custom admin menu wordpress plugin wordpress create admin page with menu make admin menu wp_admin_menu like posts for wordpress wp add a custom from in admin custom wp-admin wordpress custom admin wordpress add wp-admin to page wordpress custom admin panel page create custom admin menu item wordpress custom admin menu wordpress how to add admin menu in wordpress wordpress admin custom menu add new wordpress admin menu add custom menu wordpress admin bar how to customize wp-admin page custom wp-admin page wordpress custom admin panel wordpress custom admin page wp custom admin menu wordpress add admin menu link WP Custom Admin Interface My WP Customize Admin/Frontend ADD ADMIN PAGE wp wordpress custom admin menu wordpress admin menu custom page add page to admin menu wordpress wordpress new admin menu add to wp admin bar add link to wordpress admin menu add admin menu in wordpress adding admin menu wordpress add a new menu wordpress admin admin menu wordpress add wordpress admin menu page custom url wp admin create custom admin menu in wordpress wordpresss admin link to custom page add to wp admin menu bar add to wp admin menu wordpress customize admin menu wp custom admin add custom link in wordpress admin menu how to custom admin menu wordpress wp admin add page with o menu add wp admin bar wordpress add admin menu wordpress add page to admin menu wp custom admin interface wordpress admin menu link add plugin to wordpress link add admin menu link custom wp
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source