wp-social
Last commit date
app
1 week ago
assets
1 week ago
base
5 years ago
helper
1 week ago
inc
1 week ago
languages
1 week ago
lib
1 week ago
template
1 week ago
traits
5 years ago
xs_migration
3 years ago
autoload.php
5 years ago
instruction.txt
5 years ago
keys.php
5 years ago
phpcs.xml
3 years ago
plugin.php
1 week ago
readme.txt
1 week ago
wp-social.php
1 week ago
instruction.txt
23 lines
| 1 | ===== Custom Function Guideline ==== |
| 2 | |
| 3 | ==== Share Parametter ====== parametter |
| 4 | 1. $provider = select share provider. |
| 5 | Example: |
| 6 | $provider = ['facebook', 'twitter', 'whatsapp']; |
| 7 | |
| 8 | 2. $attr = custom class, button style, |
| 9 | $attr['class'] = 'class name'; |
| 10 | $attr['style'] = 'style1'; |
| 11 | |
| 12 | |
| 13 | Call custom function format: |
| 14 | if( function_exists('__wp_social_share') ){ |
| 15 | echo __wp_social_share( $provider, $attr ); |
| 16 | } |
| 17 | |
| 18 | if( function_exists('__wp_social_share_pro_check') ){ |
| 19 | if( __wp_social_share_pro_check() ){ |
| 20 | |
| 21 | } |
| 22 | } |
| 23 |