[wp-hackers] Adding custom taxonomies as submenus to custom admin top-level menu
Daniel Bachhuber
danielbachhuber at gmail.com
Sun Aug 1 00:27:39 UTC 2010
> Is this what you are looking for?
It's really close. My understanding of add_submenu_page(), however, is
that you have to call a function when you're hooking into a custom
admin menu; it doesn't work with a file reference. Here's my sample
code with doesn't seem functional:
add_menu_page('My Plugin', 'My Plugin',
'edit_posts', 'my_plugin-settings',
array(&$this->settings, 'general_settings'));
add_submenu_page('my_plugin-settings', 'Pitch Statuses',
'Pitch Statuses', 'my_plugin-pitch_statuses',
'edit-tags.php?taxonomy=pitch_status');
Does this make sense or am I missing something?
Thanks,
Daniel
>
>
> On Jul 31, 2010, at 5:04 PM, Daniel Bachhuber wrote:
>
>> Hey all,
>> I'm creating a plugin that uses three custom taxonomies
>> ('pitch_status', 'user_type', and 'user_role'). The first is tied
>> to posts and the second and third are tied to users. I'd like to
>> use add_submenu_page to add the edit screens for each of these
>> taxonomies to the custom menu for the plugin. Is this possible? I'd
>> prefer not to reinvent the wheel and have to create my own edit
>> views.
>>
>> Thanks much,
>>
>> Daniel
>>
>> --
>> Daniel Bachhuber
>> www.danielbachhuber.com
>> danielbachhuber at gmail.com
>> cell: +1 971 998 5407
>> aim/skype/twitter: danielbachhuber
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Daniel Bachhuber
www.danielbachhuber.com
danielbachhuber at gmail.com
cell: +1 971 998 5407
aim/skype/twitter: danielbachhuber
More information about the wp-hackers
mailing list