Using WP_w3all with WP Social Login

User avatar
axew3
w3all User
w3all User
Posts: 2689
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Using WP_w3all with WP Social Login

Post by axew3 »

Hello, I’m wishing to use WP Social Login and I wish to know how to go about this? It obviously works, but it creates the session for WP, rather than for phpBB (like the normal login does). Could you please assist me in solving such problem?
Open wp_w3all.php

search for line:

Code: Select all

add_action( 'wp_logout', array( 'WP_w3all_phpbb', 'wp_w3all_phpbb_logout' ) );
immediately after, add this:

Code: Select all

// START add fix for WordPress Social Login

    function wp_w3all_wordpress_social_authenticated( $user_user_login, $user ) { 
 
 
     if ( $_GET['action'] == 'wordpress_social_authenticated' ):

        $phpBB_user_session_set = WP_w3all_phpbb::phpBB_user_session_set_res($user); 
     
     endif;
    
   } 
             
add_action( 'wp_login', 'wp_w3all_wordpress_social_authenticated', 10, 2 ); 
  
// END fix for WordPress Social Login