customize follow button
-
Hi,
I am using your code to display the follow button:
<?php if ( function_exists( 'bp_follow_add_follow_button' ) ) : if ( bp_loggedin_user_id() && bp_loggedin_user_id() != get_the_author_meta( 'ID' ) ) { bp_follow_add_follow_button( array( 'leader_id' => get_the_author_meta( 'ID' ), 'follower_id' => bp_loggedin_user_id() ) ); } endif; ?>
Is it possible to use the button arguments in this filter too?
// setup the button arguments $button = array( 'id' => $id, 'component' => 'follow', 'must_be_logged_in' => true, 'block_self' => empty( $members_template->member ) ? true : false, 'wrapper_class' => 'follow-button ' . $id, 'wrapper_id' => 'follow-button-' . $leader_id, 'link_href' => wp_nonce_url( $leader_domain . $bp->follow->followers->slug . '/' . $action .'/', $action . '_following' ), 'link_text' => $link_text, 'link_title' => $link_title, 'link_id' => $class . '-' . $leader_id, 'link_class' => $class );
I would like to set the link_text myself and use the Twitter Bootstrap button classes. If it is possible. Could you give an example?
Thanks!
https://www.ads-software.com/extend/plugins/buddypress-followers/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘customize follow button’ is closed to new replies.