Make WordPress Core

Opened 19 years ago

Closed 18 years ago

#2679 closed defect (bug) (invalid)

hook add_submenu_page not working linking to edit.php

Reported by: tassoman's profile 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 19 years ago.
voda-sms plugin source

Download all attachments as: .zip

Change History (5)

@tassoman
19 years ago

voda-sms plugin source

#1 @matt
19 years ago

  • Milestone changed from 2.1 to 2.2

#2 @postalservice14
19 years ago

Appears to work for me on 2.1-alpha3

#3 @foolswisdom
18 years ago

  • Milestone changed from 2.2 to 2.4

#4 @pishmishy
18 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.