Example #1
0
 /**
  * __construct
  */
 public function __construct()
 {
     parent::__construct('license_wp_licenses', __('Add License', 'license-wp'));
     // handle save
     add_action('init', function () {
         if (isset($_POST['add_license'])) {
             $this->save();
         }
     });
     // add custom ajax endpoint
     add_action('wp_ajax_wpl_add_license_get_email', array($this, 'ajax_get_email'));
 }
Example #2
0
 /**
  * __construct
  */
 public function __construct()
 {
     parent::__construct('license_wp_licenses', __('Activations', 'license-wp'));
 }