Linux 软件免费装

Simple Share Follow Button

开发者 Katsushi Kawamori
更新时间 2024年6月27日 20:31
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 6.6
版权: GPLv2 or later
版权网址: 版权信息

标签

share follow

下载

1.04 1.03 1.02 1.05 1.06 1.07 1.00 1.01

详情介绍:

Displays the Share button and Follow button. Button View Filter for share button /** ================================================== * 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

安装:

  1. Upload simple-share-follow-button directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

屏幕截图:

  • Share button view
  • Manage screen

升级注意事项:

1.04 Security measures. 1.00 Initial release.

更新日志:

[1.07] 2024/02/07 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.