Skip to:

Link for page that display groups you are a member of

  • Profile photo of DanceYrselfClean_Admin
    LSB Web Design


    Hi I am trying to create a custom link in the admin menu that links to the page containing the list of groups you are a member of, for example

    Here is the code I am using to add the admin menu link, minus the actual URL which is the part I need some assistance with.

    add_action( 'admin_menu' , 'admin_menu_lsb1' );
    function admin_menu_lsb1() {
        global $menu;
        $menu[9990] = array( __('My Groups'), 'read', 'URL', 'function', 'open-if-no-js menu-top', '', 'dashicons-admin-generic' );

    From what I have read I think I need to incorporate bp_core_get_username($user_id) into the URL but I can’t seem to figure it out, PHP just isn’t my strong point.

    If anyone could offer assistance I would greatly appreciate it.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar