A HitchHackers guide through WordPress


Home | Pages | Archives


add_plugins_page

February 11, 2011 10:45 pm

Definition:
function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {}

Add sub menu page to the plugins main menu.
This function takes a capability which will be used to determine whether or not a page is included in the menu.

Parameters

Return values

returns:The resulting page’s hook_suffix, or false if the user does not have the capability required.

Source code

function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {

	return add_submenu_page( 'plugins.php', $page_title, $menu_title, $capability, $menu_slug, $function );

}

279

Rate this:

Posted by Thorsten

Categories: /wp-admin/includes/plugin.php, Documentation, Files, Functions, Functions by letter a

Tags: ,

Leave a Reply



Mobile Site | Full Site


Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.