Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Re: Global Custom Fields Re: Re: Global Custom Fields

#72772
Rob MacKay
Participant

yea you just have to change the bit that adds the settings…

so this bit:

Code:
add_action(‘admin_menu’, ‘add_gcf_interface’);

function add_gcf_interface() {
add_options_page(‘Global Custom Fields’, ‘Global Custom Fields’, ‘8’, ‘functions’, ‘editglobalcustomfields’);
}

to something like this…

Code:
add_action(‘admin_menu’, ‘add_gcf_interface’);

function add_gcf_interface() {

add_menu_page(page_title, menu_title, capability, handle, [function], [icon_url]);
add_submenu_page(parent, page_title, menu_title, capability required, file/handle, [function]);

}

http://codex.wordpress.org/Adding_Admin … _Functions
http://codex.wordpress.org/Adding_Admin … #Sub-Menus

hope that helps :)

EDIT: sorry this adds a new menu section under your menu lol