توضیحات
Displays the Share button and Follow button.
Button
- X(Twitter)
- Youtube
- WordPress
- Github
- Line
- Hatena
- Rss
- Feedly
View
- The share button is displayed immediately after the content.
- The follow button is displayed on the top right by default. It can be changed in the settings page.
- The follow button can also be displayed with a shortcode.
Filter for share button
- Each initial value indicates the position from the left side.
- If the value is null, it will be hidden.
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 );
- If you want to hide it, set it to false.
ssfb_share: initial value true
/** ==================================================
* Filter for hide all.
*
*/
add_filter( 'ssfb_share', function(){ return false; }, 10, 1 );
- If you want to hide it by post ID, set it to false.
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 );
- If you want to hide it by post type, set it to false.
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 );
icon
[IcoMoon – Free https://icomoon.io/]
License GPL / CC BY 4.0
نصب
- Upload
simple-share-follow-buttondirectory to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
سوالات متداول
none
نقد و بررسیها
نقد و بررسیای برای این افزونه یافت نشد.
توسعه دهندگان و همکاران
“Simple Share Follow Button” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.
مشارکت کنندگان“Simple Share Follow Button” به 1 زبان ترجمه شده است. با تشکر از مترجمین برای همکاری و کمکهایشان.
ترجمه “Simple Share Follow Button” به زبان شما.
علاقه مند به توسعه هستید؟
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
گزارش تغییرات
[1.10] 2025/04/02
- Fix – Rebuilt javascript.
[1.09] 2024/11/14
- Fix – Rebuilt javascript.
[1.08] 2024/11/13
- Fix – Rebuilt javascript.
- Change – Changed the required version of WordPress.
[1.07] 2024/02/07
- Fix – Twitter icon to X icon.
- Fix – Icons is regenerated.
- Tweak – Tweaked admin screen.
1.06
Changed json_encode to wp_json_encode.
1.05
Supported WordPress 6.4.
PHP 8.0 is now required.
1.04
Fixed problem of XSS via shortcode.
1.03
Supported WordPress 6.1.
1.02
Rebuild react.
1.01
Rebuild react.
1.00
Initial release.


