Skip to:
Content
Pages
Categories
Search
Top
Bottom

add_submenu_page & __FILE__ problem


  • grosbouff
    Participant

    @grosbouff

    Hi, I’m trying to add a page in the wp-admin for my component.

    add_submenu_page( 'bp-core.php', __( 'Classifieds Setup', 'classifieds' ), __( 'Classifieds Setup', 'classifieds' ), 2, __FILE__, "bp_classifieds_siteadmin_screen" );

    Once in the admin, I have the following problem :

    The url of the link is

    .../wordpress-mu/wp-admin/bp-classifieds/bp-classifieds-admin.php

    and should be (like for the other bp components I guess)

    .../wordpress-mu/wp-admin/admin.php?page=bp-classifieds/bp-classifieds-admin.php

    Is that a bug of buddypress ??

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘add_submenu_page & __FILE__ problem’ is closed to new replies.
Skip to toolbar