Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Display Social Share Buttons By Default
<?php
// Show Sharing Buttons !
function yzss_get_social_share_by_default() {
yzss_share_buttons( bp_get_activity_id(), 'activity' );
}
add_action( 'bp_activity_entry_content', 'yzss_get_social_share_by_default', 9999 );
// Remove Sharing Button From Activities.
function yzss_remove_sharing_btn() {
remove_action( 'bp_activity_entry_meta_non_logged_in', 'yzss_add_wall_share_button' );
}
add_action( 'bp_activity_entry_meta_non_logged_in', 'yzss_remove_sharing_btn',9 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment