示例#1
0
 /**
  * Called on init, as early as possible.
  *
  * @since 1.11
  * @uses $wp_properties WP-Property configuration array
  * @access public
  *
  */
 function init_upper()
 {
     global $wp_properties;
     //** Init action hook */
     do_action('wpp_init');
     /** Making template-functions global but load after the premium features, giving the premium features priority. */
     include_once WPP_Path . 'lib/template-functions.php';
     //* set WPP capabilities */
     $this->set_capabilities();
     //** Set up our custom object and taxonomyies */
     WPP_F::register_post_type_and_taxonomies();
     //** Load settings into $wp_properties and save settings if nonce exists */
     WPP_F::settings_action();
     //** Load all widgets and register widget areas */
     add_action('widgets_init', array('WPP_F', 'widgets_init'));
 }