wpdesk/wp-helpscout-beacon

1.6.1 2023-01-02 08:42 UTC

README

pipeline status coverage report Latest Stable Version Total Downloads Latest Unstable Version License

WordPress 库,用于 HelpScout Beacon 集成

要求

PHP 5.6 或更高版本。

Composer

您可以通过 Composer 安装绑定。运行以下命令

composer require --dev wpdesk/wp-helpscout-beacon

要使用绑定,请使用 Composer 的 自动加载

require_once 'vendor/autoload.php';

用法

add_action( 'plugin/ready', function () {
    if ( is_admin() && get_option( 'disable_beacon', 'no' ) !== 'yes' ) {
        ( new Beacon(
            '6057086f-4b25-4e12-8735-fbc556d2dc05',
            new BeaconShopMagicShouldShowStrategy(),
            $vendor_url . '/wp-helpscout-beacon/assets/'
        ) )->hooks();

    }
} );

项目文档

PHPDoc: https://wpdesk.gitlab.io/wp-helpscout-beacon/index.html