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 Library for HelpScout Beacon integration

Requirements

PHP 5.6 or later.

Composer

You can install the bindings via Composer. Run the following command:

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

To use the bindings, use Composer's autoload:

require_once 'vendor/autoload.php';

Usage

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();

    }
} );

Project documentation

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