Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Scriptless social sharing buttons before and after content
- add_action( 'generate_before_content', 'gp_share_buttons', 10);
- add_action( 'generate_after_content', 'gp_share_buttons', 10);
- function gp_share_buttons() {
- if ( is_single() ) {
- echo do_shortcode( '[scriptless]' );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement