wp_login hook conflict with core users.php action
-
Hi,I have
WordPress: 5.3.2
Discussion Board: 2.3.13
Paid Memberships Pro: 2.2.6
Using Discssion bord login form.
There is a conflict on Discussion Board plugin and Paid Membership Pro.
Conflict
———-
wp-includes/users.php/wp_signon has do_action( ‘wp_login’, $user->user_login, $user ); //2 params
same hook is in you pluign tooplugins/wp-discussion-board/includes/classes/class-ct-db-registration.php do_action( ‘wp_login’, $_POST[‘ctdb_user_login’] ); // 1 parameter
Hence while login – WordPress says – there is There has been a critical error on your website.
I found out if you pass extra $user object in your do action hook – it resovles the issue.
Can you please take a look at this issue.
Regards.
- The topic ‘wp_login hook conflict with core users.php action’ is closed to new replies.