__construct() public method

public __construct ( )
コード例 #1
0
ファイル: http.php プロジェクト: L0k1slnk/weddly
 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);
 }
コード例 #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);
 }
コード例 #3
0
ファイル: theme.php プロジェクト: darbymanning/Family-Church
 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);
 }
コード例 #4
0
ファイル: php_errors.php プロジェクト: L0k1slnk/weddly
 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);
 }
コード例 #5
0
ファイル: http.php プロジェクト: jeanpage/ca_learn
 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);
 }
コード例 #6
0
ファイル: assets.php プロジェクト: giridhar9/Portfolio
 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);
 }
コード例 #7
0
ファイル: environment.php プロジェクト: giridhar9/Portfolio
 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;
     }
 }
コード例 #8
0
ファイル: db_components.php プロジェクト: jeanpage/ca_learn
 public function __construct()
 {
     parent::__construct();
 }
コード例 #9
0
 public function __construct()
 {
     parent::__construct();
     add_filter('override_load_textdomain', array($this, 'log_file_load'), 99, 3);
 }
コード例 #10
0
ファイル: redirects.php プロジェクト: jeanpage/ca_learn
 public function __construct()
 {
     parent::__construct();
     add_filter('wp_redirect', array($this, 'filter_wp_redirect'), 999, 2);
 }
コード例 #11
0
ファイル: authentication.php プロジェクト: jeanpage/ca_learn
 public function __construct()
 {
     parent::__construct();
     add_action('plugins_loaded', array($this, 'action_plugins_loaded'));
 }
コード例 #12
0
ファイル: theme.php プロジェクト: pfkellogg/hooks_good_one
 public function __construct()
 {
     parent::__construct();
     add_filter('body_class', array($this, 'filter_body_class'), 99);
 }
コード例 #13
0
ファイル: php_errors.php プロジェクト: jeanpage/ca_learn
 public function __construct()
 {
     parent::__construct();
     set_error_handler(array($this, 'error_handler'));
 }