Displays the Share button and Follow button.
ssfb_share_twitter
: initial value 1ssfb_share_facebook
: initial value 2ssfb_share_pocket
: initial value 3ssfb_share_hatena
: initial value 4ssfb_share_line
: initial value 5/** ==================================================
* Filter for hide X(twitter).
*
*/
add_filter( 'ssfb_share_twitter', function(){ return null; }, 10, 1 );
/** ==================================================
* Filter for position X(twitter) and facebook.
*
*/
add_filter( 'ssfb_share_twitter', function(){ return 2; }, 10, 1 );
add_filter( 'ssfb_share_facebook', function(){ return 1; }, 10, 1 );
ssfb_share
: initial value true/** ==================================================
* Filter for hide all.
*
*/
add_filter( 'ssfb_share', function(){ return false; }, 10, 1 );
ssfb_share_id
: initial value true/** ==================================================
* Display by post ID or not for Simple Share Follow Button
*
* @param bool $flag view.
* @param int $pid post ID.
* @since 1.00
*/
function ssfb_share_post_id( $flag, $pid ) {
if ( 1567 === $pid ) {
$flag = false;
}
return $flag;
}
add_filter( 'ssfb_share_id', 'ssfb_share_post_id', 10, 2 );
ssfb_share_type
: initial value true/** ==================================================
* Display by post type or not for Simple Share Follow Button
*
* @param bool $flag view.
* @param string $type post type.
* @since 1.00
*/
function ssfb_share_post_type( $flag, $type ) {
if ( 'page' === $type || 'attachment' === $type ) {
$flag = false;
}
return $flag;
}
add_filter( 'ssfb_share_type', 'ssfb_share_post_type', 10, 2 );
[IcoMoon – Free https://icomoon.io/]
License GPL / CC BY 4.0