Replies: 1 comment
-
Indeed, if you pass anything but false to Something like : yourls_add_filter( 'shunt_share_box', 'custom_shunt_share_box' );
function custom_shunt_share_box() {
// some tests depending on context ?
// if you want to return your custom share box:
$html = ....
return $html;
// if you want the default share box
return false;
} There are numerous plugins about the share box -- see https://github.com/YOURLS/awesome-yourls and search for "Share", maybe this will help ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to make several changes on the sharebox with a plugin but not sure on how to do it :
What I've understood is that we can do all the things above but none seems to help achieving the desired changes.
yourls_add_filter( 'shunt_share_box', 'custom_shunt_share_box' );
making it to true valueyourls_add_filter( 'share_box_data', 'custom_share_data' );
yourls_add_action( 'shareboxes_before', 'custom_sharebox_before' );
yourls_add_action( 'shareboxes_middle', 'custom_sharebox_middle' );
yourls_add_action( 'shareboxes_after', 'custom_sharebox_after' );
Any help appreciated.
Beta Was this translation helpful? Give feedback.
All reactions