Skip to content

Commit 2579375

Browse files
committed
Re-order hook for skip error when building object current member
1 parent f097b3e commit 2579375

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

classes/class-main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MPT_Main {
1111
*/
1212
public function __construct() {
1313
// Init once MPT roles
14-
add_action('init', array('MPT_Roles', 'init'), 12);
14+
add_action('init', array('MPT_Roles', 'init'), 9);
1515

1616
// Init AJAX hook
1717
add_action('wp_loaded', array(__CLASS__, 'wp_loaded'), 15);

classes/class-post-type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class MPT_Post_Type {
88
* @return void.
99
*/
1010
public function __construct() {
11-
add_action('init', array(__CLASS__, 'init') );
11+
add_action('init', array(__CLASS__, 'init'), 7 );
1212
add_filter('post_updated_messages', array(__CLASS__, 'post_updated_messages') );
1313
}
1414

classes/class-taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class MPT_Taxonomy {
88
* @return mixed Value.
99
*/
1010
public function __construct() {
11-
add_action('init', array(__CLASS__, 'init'), 11 );
11+
add_action('init', array(__CLASS__, 'init'), 8 );
1212
}
1313

1414
/**

classes/shortcodes/class-shortcode-login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class MPT_Shortcode_Login extends MPT_Shortcode {
55
*/
66
public function __construct() {
77
add_shortcode( 'member-login' , array( __CLASS__, 'shortcode' ) );
8-
add_action( 'init' , array( __CLASS__, 'init' ) );
8+
add_action( 'init' , array( __CLASS__, 'init' ), 12 );
99
}
1010

1111
/**

0 commit comments

Comments
 (0)