コード例 #1
0
 /**
  * Initialize the plugin by setting localization and loading public scripts
  * and styles.
  *
  * @since     1.0.0
  */
 private function __construct()
 {
     // Load plugin text domain
     add_action('init', array($this, 'load_plugin_textdomain'));
     // Activate plugin when new blog is added
     add_action('wpmu_new_blog', array($this, 'activate_new_site'));
     self::$default_options = array('nsfp_posttypes' => array('post' => 1));
     $this->_setDefaultOptions();
     // Get current options.
     $this->_getCurrentOptions();
 }
コード例 #2
0
 /**
  * Initialize the plugin by setting localization and loading public scripts
  * and styles.
  *
  * @since     1.0.0
  */
 private function __construct()
 {
     // Load plugin text domain
     add_action('init', array($this, 'load_plugin_textdomain'));
     // Activate plugin when new blog is added
     add_action('wpmu_new_blog', array($this, 'activate_new_site'));
     // Load public-facing style sheet and JavaScript.
     // add_action('wp_enqueue_scripts', array($this, 'enqueue_styles'));
     // add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts'));
     self::$default_options = array('nsfp_posttypes' => array('post' => 1));
     $this->_setDefaultOptions();
     //get current options
     $this->_getCurrentOptions();
 }