Skip to content
Snippets Groups Projects
Select Git revision
  • 2684b26ac1ab1cf6a51375ea551977816637ee29
  • master default protected
  • 1.1.0
  • 1.0
4 results

wp-show-decision

user avatar
dyszczo authored
2684b26a
History

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

WordPress Library for Form integration

Requirements

PHP 5.6 or later.

Composer

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

composer require --dev wpdesk/wp-show-decision

To use the bindings, use Composer's autoload:

require_once 'vendor/autoload.php';

Usage

    new Beacon(
        '6057086f-4b25-4e12-8735-fbc556d2dc01',
        new PostTypeStrategy('automation'),
        $this->get_plugin_assets_url()
    if ( is_admin() ) {
        ( new RateNotices(
            [ new TwoWeeksNotice( $this->plugin_url . '/assets', new PostTypeStrategy([
                [ 'page' => 'x', 'name' => 'stefan' ], // show when page = x and name = stefan
                [ 'page' => 'y' ]  // OR when page = y
            ] ) ) ]
        ) )->hooks();
    }

Project documentation

PHPDoc: https://wpdesk.gitlab.io/wp-show-decision/index.html