예제 #1
0
 function __construct()
 {
     parent::__construct();
     if (is_admin()) {
         $this->titan_instance = $this->get_plugin_dir();
         add_action('tf_create_options', array($this, 'create_metabox'));
         add_action('save_post', array($this, 'save_price_item'), 10, 3);
     }
 }
예제 #2
0
 function __construct()
 {
     parent::__construct();
     if (is_admin()) {
         $this->menu_slug = 'pm-simple-payment';
         $this->notify_url = home_url() . '/?akce_fakturace=gopay-notify';
         add_action('tf_create_options', array($this, 'create_options'));
     }
 }