Skip to content

Instantly share code, notes, and snippets.

@Shininglow
Created August 9, 2017 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shininglow/d9fb972d456ccc3b4e1f0948a4a7a3b9 to your computer and use it in GitHub Desktop.
Save Shininglow/d9fb972d456ccc3b4e1f0948a4a7a3b9 to your computer and use it in GitHub Desktop.
$defaults = apply_filters( 'king_news_default_args_share_buttons', array(
'facebook' => array(
'icon' => 'fa fa-facebook',
'name' => esc_html__( 'Facebook', 'king_news' ),
'share_url' => 'https://www.facebook.com/sharer/sharer.php?u=%3$s&t=%4$s',
),
'twitter' => array(
'icon' => 'fa fa-twitter',
'name' => esc_html__( 'Twitter', 'king_news' ),
'share_url' => 'https://twitter.com/intent/tweet?url=%3$s&text=%4$s',
),
'google-plus' => array(
'icon' => 'fa fa-google-plus',
'name' => esc_html__( 'Google+', 'king_news' ),
'share_url' => 'https://plus.google.com/share?url=%3$s',
),
'linkedin' => array(
'icon' => 'fa fa-linkedin',
'name' => esc_html__( 'LinkedIn', 'king_news' ),
'share_url' => 'http://www.linkedin.com/shareArticle?mini=true&url=%3$s&title=%4$s&summary=%5$s&source=%3$s',
),
'pinterest' => array(
'icon' => 'fa fa-pinterest',
'name' => esc_html__( 'Pinterest', 'king_news' ),
'share_url' => 'https://www.pinterest.com/pin/create/button/?url=%3$s&description=%4$s&media=%6$s',
),
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment