Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/0877237736e213c0dd3000fe2147a66d to your computer and use it in GitHub Desktop.
Save KaineLabs/0877237736e213c0dd3000fe2147a66d to your computer and use it in GitHub Desktop.
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 );
@ashokyadav951
Copy link

ashokyadav951 commented Apr 22, 2023

not working above snnipet code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment