Esempio n. 1
0
 function __construct()
 {
     self::$instance = $this;
     add_action('wp_loaded', array($this, 'wp_loaded'));
     add_action('jetpack_admin_menu', array($this, 'jetpack_admin_menu'));
     if (is_admin()) {
         add_action('admin_bar_menu', array($this, 'admin_bar_search'), 4);
     }
     add_filter('omnisearch_num_results', array($this, 'omnisearch_num_results'));
 }
 function __construct()
 {
     self::$instance = $this;
     add_action('wp_loaded', array($this, 'wp_loaded'));
     add_action('admin_init', array($this, 'add_providers'));
     //slim//add_action( 'jetpack_admin_menu', array( $this, 'jetpack_admin_menu' ) );
     add_action('admin_menu', array($this, 'admin_menu'), 20);
     if (!jetpack_is_mobile()) {
         add_action('admin_bar_menu', array($this, 'admin_bar_search'), 4);
     }
     add_filter('omnisearch_num_results', array($this, 'omnisearch_num_results'));
 }