Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to add a function for ajax request without add a subnav item for it?

  • Hi all,
    i want to replace a compose subnav item by a new message button that is working with ajax,
    but when i remove the slug of compose from subnav menu such as this:
    function remove_compose_nav() {
    bp_core_remove_subnav_item( ‘messages’,’compose’ );
    }
    add_action( ‘bp_setup_nav’, ‘remove_compose_nav’, 15 );

    the subnav item disabled and the function of it also.
    did there is any right way to remove subnav item wihtout remove it’s function ,or add a function that i can request it from the url without add a subnav for it.
    Thanks,

  • The topic ‘how to add a function for ajax request without add a subnav item for it?’ is closed to new replies.
Skip to toolbar