예제 #1
0
 /**
  *  This function is called when the plugin gets activated. Sets default
  *  Options to the database
  */
 public static function on_activate()
 {
     $o = get_option('arv_fb24_opt', array());
     $def = arvlbSHARED::getDefaults();
     if (empty($o)) {
         update_option('arv_fb24_opt', $def);
     }
     return;
 }
예제 #2
0
 function __construct()
 {
     parent::__construct('arv_fb24_opt', arvlbSHARED::getDefaults());
 }
예제 #3
0
파일: index.php 프로젝트: ntnvu/tcb_online
 /**
  * Constructor, initializes options
  */
 function __construct()
 {
     $this->options = get_option('arv_fb24_opt', arvlbSHARED::getDefaults());
     add_action('wp_enqueue_scripts', array($this, 'addScript'));
 }