__construct() public method

public __construct ( )
Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     add_filter('http_request_args', array($this, 'filter_http_request_args'), 99, 2);
     add_filter('pre_http_request', array($this, 'filter_pre_http_request'), 99, 3);
     add_action('http_api_debug', array($this, 'action_http_api_debug'), 99, 5);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     # See http://core.trac.wordpress.org/ticket/24583
     add_action('setted_site_transient', array($this, 'action_setted_site_transient'), 10, 3);
     add_action('setted_transient', array($this, 'action_setted_blog_transient'), 10, 3);
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     add_filter('body_class', array($this, 'filter_body_class'), 999);
     add_filter('template_include', array($this, 'filter_template_include'), 999);
     add_filter('timber/output', array($this, 'filter_timber_output'), 999, 3);
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     set_error_handler(array($this, 'error_handler'));
     register_shutdown_function(array($this, 'shutdown_handler'));
     $this->display_errors = ini_get('display_errors');
     ini_set('display_errors', 0);
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     add_action('http_api_debug', array($this, 'action_http_debug'), 99, 5);
     add_filter('http_request_args', array($this, 'filter_http_request'), 99, 2);
     add_filter('http_response', array($this, 'filter_http_response'), 99, 3);
     # http://core.trac.wordpress.org/ticket/25747
     add_filter('pre_http_request', array($this, 'filter_pre_http_request'), 99, 3);
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     add_action('admin_print_footer_scripts', array($this, 'action_print_footer_scripts'));
     add_action('wp_print_footer_scripts', array($this, 'action_print_footer_scripts'));
     add_action('admin_head', array($this, 'action_head'), 999);
     add_action('wp_head', array($this, 'action_head'), 999);
     add_action('login_head', array($this, 'action_head'), 999);
 }
Exemplo n.º 7
0
 public function __construct()
 {
     global $wpdb;
     parent::__construct();
     # If QM_DB is in place then we'll use the values which were
     # caught early before any plugins had a chance to alter them
     foreach ($this->php_vars as $setting) {
         if (isset($wpdb->qm_php_vars) and isset($wpdb->qm_php_vars[$setting])) {
             $val = $wpdb->qm_php_vars[$setting];
         } else {
             $val = ini_get($setting);
         }
         $this->data['php']['variables'][$setting]['before'] = $val;
     }
 }
Exemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 9
0
 public function __construct()
 {
     parent::__construct();
     add_filter('override_load_textdomain', array($this, 'log_file_load'), 99, 3);
 }
Exemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
     add_filter('wp_redirect', array($this, 'filter_wp_redirect'), 999, 2);
 }
Exemplo n.º 11
0
 public function __construct()
 {
     parent::__construct();
     add_action('plugins_loaded', array($this, 'action_plugins_loaded'));
 }
Exemplo n.º 12
0
 public function __construct()
 {
     parent::__construct();
     add_filter('body_class', array($this, 'filter_body_class'), 99);
 }
Exemplo n.º 13
0
 public function __construct()
 {
     parent::__construct();
     set_error_handler(array($this, 'error_handler'));
 }