Home › Forums › Back End › Re: Global Custom Fields › Re: Re: Global Custom Fields
March 22, 2010 at 3:47 pm
#72772
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