WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 7 years ago

#2679 closed defect (bug) (invalid)

hook add_submenu_page not working linking to edit.php

Reported by: tassoman Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: add_submenu_page
Focuses: Cc:

Description

Hi to all,

I'm trying to edit a new version of mine plugin Voda-sms but i can't get it showed into edit.php with the following code:

function add_vodasms_menu() {
	add_submenu_page('edit.php', 'Plugin » Vodafone SMS', 'Vodafone SMS' , 8 , __FILE__ , 'vodasms_sub_page');
}

add_action('admin_menu','add_vodasms_menu');	

If I change edit.php with plugins.php, plugin works fine.

Attachments (1)

voda-sms.php (5.0 KB) - added by tassoman 9 years ago.
voda-sms plugin source

Download all attachments as: .zip

Change History (5)

@tassoman9 years ago

voda-sms plugin source

comment:1 @matt8 years ago

  • Milestone changed from 2.1 to 2.2

comment:2 @postalservice148 years ago

Appears to work for me on 2.1-alpha3

comment:3 @foolswisdom8 years ago

  • Milestone changed from 2.2 to 2.4

comment:4 @pishmishy7 years ago

  • Milestone 2.4 deleted
  • Resolution set to invalid
  • Status changed from new to closed

I'm able to add subpages to the edit menu successfully.
If the original reporter is still having a problem with this, I recommend asking for help on the wp-hackers mailing list.

Note: See TracTickets for help on using tickets.