Reply To: CAN BE DELETED
$defaults = array(
‘id’ => ‘transfer_offer’,
‘component’ => ‘xprofile’,
‘must_be_logged_in’ => true,
‘block_self’ => true,
‘wrapper_class’ => ‘transfer-button ‘,
‘wrapper_id’ => ‘transferbutton-‘,
‘link_href’ => I DONT KNOW WHAT TO PUT HERE
‘link_text’ => __( ‘Transfer Verzoek’, ‘buddypress’ ),
‘link_class’ => ‘profile-button transfer-verzoek’,
);
I switched the debug mode and used :
function jay_check_transfer_click() {
echo bp_current_action(); home <--- results
echo bp_current_item(); // sfc-ajax <--- results
echo bp_current_component(); groups <--- results
}
add_action( 'bp_actions', 'jay_check_transfer_click' );
Then i tried them all in the function but so far it only worked when i clicked on “Profile” in the X-profile of the user, but this is not what i want. When i clicked the button it didn’t call the function. Hope anyone has the solution to this because its driving me nuts lol