PHP code example of ignitekit / wp-deactivate-feedback-client

1. Go to this page and download the library: Download ignitekit/wp-deactivate-feedback-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ignitekit / wp-deactivate-feedback-client example snippets


try {
	new \IgniteKit\WP\DeactivateFeedbackClient\Main( [
		'name'        => 'Digital License Manager',
		'slug'        => 'digital-license-manager',
		'version'     => YOUR_PLUGIN_VERSION,
		'prefix'      => 'dlm_',
		'public_path' => str_replace( '/', DIRECTORY_SEPARATOR, dirname( __FILE__ ) . '/vendor/ignitekit/wp-deactivate-feedback-client/public/' ),
		'public_url'  => rtrim( plugin_dir_url( __FILE__ ), '/' ) . '/vendor/ignitekit/wp-deactivate-feedback-client/public/',
		'api_url'     => 'https://yoursite.com/wp-json/deactivate-feedback/v1/feedback',
		'data'        => [ 'website', 'system', 'contact' ],
	] );
} catch ( \Exception $e ) {

}