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