Created
May 10, 2016 15:05
-
-
Save farookibrahim/2f24e14c197a0b8e357fe91810749eed to your computer and use it in GitHub Desktop.
Unicase Social Share Icons Customize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'unicase_single_post_social_icons_args', 'uc_custom_single_post_social_share_icons_args' ); | |
| function uc_custom_single_post_social_share_icons_args() { | |
| $single_post_social_icons_args = array( | |
| 'facebook' => array( | |
| 'share_url' => 'http://www.facebook.com/sharer.php', | |
| 'icon' => 'fa fa-facebook', | |
| 'name' => esc_html__( 'Facebook', 'unicase' ), | |
| 'params' => array( | |
| 'u' => 'url' | |
| ) | |
| ), | |
| 'twitter' => array( | |
| 'share_url' => 'https://twitter.com/share', | |
| 'icon' => 'fa fa-twitter', | |
| 'name' => esc_html__( 'Twitter', 'unicase' ), | |
| 'params' => array( | |
| 'url' => 'url', | |
| 'text' => 'title', | |
| 'via' => 'via', | |
| 'hastags' => 'hastags' | |
| ) | |
| ), | |
| 'google_plus' => array( | |
| 'share_url' => 'https://plus.google.com/share', | |
| 'name' => esc_html__( 'Google Plus', 'unicase' ), | |
| 'icon' => 'fa fa-google-plus', | |
| 'params' => array( | |
| 'url' => 'url' | |
| ) | |
| ), | |
| 'pinterest' => array( | |
| 'share_url' => 'https://pinterest.com/pin/create/bookmarklet/', | |
| 'name' => esc_html__( 'Pinterest', 'unicase' ), | |
| 'icon' => 'fa fa-pinterest', | |
| 'params' => array( | |
| 'media' => 'thumbnail_src', | |
| 'url' => 'url', | |
| 'is_video' => 'is_video', | |
| 'description' => 'title' | |
| ) | |
| ), | |
| 'digg' => array( | |
| 'share_url' => 'http://digg.com/submit', | |
| 'name' => esc_html__( '', 'unicase' ), | |
| 'icon' => 'fa fa-digg', | |
| 'params' => array( | |
| 'url' => 'url', | |
| 'title' => 'title', | |
| ) | |
| ), | |
| 'email' => array( | |
| 'share_url' => 'mailto:[email protected]', | |
| 'name' => esc_html__( 'Email', 'unicase' ), | |
| 'icon' => 'fa fa-envelope', | |
| 'params' => array( | |
| 'subject' => 'title', | |
| 'body' => 'url', | |
| ) | |
| ), | |
| ); | |
| return $single_post_social_icons_args; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment