Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add do_action to a custom bp_nouveau_get_members_buttons


  • fcentrone
    Participant

    @fcentrone

    Hello,

    I add a new button to the bp_nouveau_get_members_buttons but I could find only the way to have a href on it. How can I call an hook with a do_action(‘myaction’)?

    $buttons[‘new_button’] = array(
    ‘id’ => ‘buddydev_new_button’,
    ‘component’ => ‘members’,
    ‘must_be_logged_in’ => true,
    ‘button_element’ => ‘a’,
    ‘link_text’ => __( ‘New Button’ ),
    ‘button_attr’ => array(
    ‘href’ => esc_url( ‘I want a do action more then a redirect’ ),
    ‘title’ => __( ‘…’ ),
    )
    );

    Thank you for your help,
    Francesco

  • You must be logged in to reply to this topic.
Skip to toolbar