Social Login WordPress Plugin – AccessPress Social Login Lite - Version 2.0.0

Version Description

  • addition of the hookable function for the user creation.
  • Code optimization for the login check class.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Login WordPress Plugin – AccessPress Social Login Lite
Version 2.0.0
Comparing to
See all releases

Code changes from version 1.0.9 to 2.0.0

accesspress-social-login-lite.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  Plugin name: AccessPress Social Login Lite
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
6
  Description: A plugin to add various social logins to a site.
7
- version: 1.0.9
8
  Author: AccessPress Themes
9
  Author URI: https://accesspressthemes.com/
10
  Text Domain: apsl-lite
@@ -14,7 +14,7 @@ License: GPLv2 or later
14
 
15
  //Declearation of the necessary constants for plugin
16
  if(!defined ( 'APSL_VERSION' ) ){
17
- define ( 'APSL_VERSION', '1.0.9' );
18
  }
19
 
20
  if( !defined( 'APSL_IMAGE_DIR' ) ){
@@ -108,7 +108,7 @@ if( !class_exists( 'APSL_Lite_Class' ) ){
108
  if( in_array("register_form", $options['apsl_display_options']) ) {
109
  add_action( 'register_form', array($this, 'add_social_login') ); //add the social logins to the registration form
110
  add_action('after_signup_form', array($this,'add_social_login') );
111
- }
112
 
113
  if( in_array( "comment_form", $options['apsl_display_options'] ) ) {
114
  add_action( 'comment_form_top', array($this, 'add_social_login_form_to_comment') ); //add the social logins to the comment form
@@ -197,7 +197,6 @@ if( !class_exists( 'APSL_Lite_Class' ) ){
197
 
198
  //loads the text domain for translation
199
  function plugin_text_domain(){
200
-
201
  load_plugin_textdomain( APSL_TEXT_DOMAIN, false, APSL_LANG_DIR );
202
  }
203
 
@@ -256,7 +255,7 @@ if( !class_exists( 'APSL_Lite_Class' ) ){
256
 
257
  //function to add the social login in the comment form.
258
  function add_social_login_form_to_comment(){ ?>
259
- <?php
260
  $options = get_option( APSL_SETTINGS );
261
  $login_text = $options['apsl_title_text_field'];
262
  if (!is_user_logged_in()){ ?>
4
  Plugin name: AccessPress Social Login Lite
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
6
  Description: A plugin to add various social logins to a site.
7
+ version: 2.0.0
8
  Author: AccessPress Themes
9
  Author URI: https://accesspressthemes.com/
10
  Text Domain: apsl-lite
14
 
15
  //Declearation of the necessary constants for plugin
16
  if(!defined ( 'APSL_VERSION' ) ){
17
+ define ( 'APSL_VERSION', '2.0.0' );
18
  }
19
 
20
  if( !defined( 'APSL_IMAGE_DIR' ) ){
108
  if( in_array("register_form", $options['apsl_display_options']) ) {
109
  add_action( 'register_form', array($this, 'add_social_login') ); //add the social logins to the registration form
110
  add_action('after_signup_form', array($this,'add_social_login') );
111
+ }
112
 
113
  if( in_array( "comment_form", $options['apsl_display_options'] ) ) {
114
  add_action( 'comment_form_top', array($this, 'add_social_login_form_to_comment') ); //add the social logins to the comment form
197
 
198
  //loads the text domain for translation
199
  function plugin_text_domain(){
 
200
  load_plugin_textdomain( APSL_TEXT_DOMAIN, false, APSL_LANG_DIR );
201
  }
202
 
255
 
256
  //function to add the social login in the comment form.
257
  function add_social_login_form_to_comment(){ ?>
258
+ <?php
259
  $options = get_option( APSL_SETTINGS );
260
  $login_text = $options['apsl_title_text_field'];
261
  if (!is_user_logged_in()){ ?>
inc/frontend/login_check.php CHANGED
@@ -511,6 +511,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ){
511
  function creatUser($user_name, $user_email){
512
  $random_password = wp_generate_password(12, false);
513
  $user_id = wp_create_user( $user_name, $random_password, $user_email );
 
514
  $options = get_option( APSL_SETTINGS );
515
  if($options['apsl_send_email_notification_options'] == 'yes'){
516
  wp_new_user_notification( $user_id, $random_password );
511
  function creatUser($user_name, $user_email){
512
  $random_password = wp_generate_password(12, false);
513
  $user_id = wp_create_user( $user_name, $random_password, $user_email );
514
+ do_action( 'APSL_createUser', $user_id ); //hookable function to perform additional work after creation of user.
515
  $options = get_option( APSL_SETTINGS );
516
  if($options['apsl_send_email_notification_options'] == 'yes'){
517
  wp_new_user_notification( $user_id, $random_password );
inc/frontend/shortcode.php CHANGED
@@ -5,7 +5,12 @@ if (is_user_logged_in()){
5
  global $current_user;
6
  $user_info = "<span class='display-name'>{$current_user->data->display_name}</span>&nbsp;";
7
  $user_info .= get_avatar( $current_user->ID, 20 );
 
 
 
 
8
  $current_url = APSL_Lite_Login_Check_Class::curPageURL();
 
9
  if(isset($options['apsl_custom_logout_redirect_options']) && $options['apsl_custom_logout_redirect_options'] !=''){
10
  if($options['apsl_custom_logout_redirect_options'] =='home'){
11
  $user_logout_url = wp_logout_url( home_url() );
5
  global $current_user;
6
  $user_info = "<span class='display-name'>{$current_user->data->display_name}</span>&nbsp;";
7
  $user_info .= get_avatar( $current_user->ID, 20 );
8
+
9
+ if( !empty( $_GET[ 'redirect' ] ))
10
+ $current_url = $_GET[ 'redirect' ];
11
+ else
12
  $current_url = APSL_Lite_Login_Check_Class::curPageURL();
13
+
14
  if(isset($options['apsl_custom_logout_redirect_options']) && $options['apsl_custom_logout_redirect_options'] !=''){
15
  if($options['apsl_custom_logout_redirect_options'] =='home'){
16
  $user_logout_url = wp_logout_url( home_url() );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social, login, social login, facebook, twitter, google, social connect, s
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
- Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -131,6 +131,10 @@ Yes. You can use the AccessPress social login lite anywhere by using shortcode i
131
  4. Backend Other settings Section.
132
 
133
  == Changelog ==
 
 
 
 
134
  = 1.0.9 =
135
  * Fixed the issues google redirect issues for after social login to current page.
136
  * Demo link url change.
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
+ Stable tag: 2.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
131
  4. Backend Other settings Section.
132
 
133
  == Changelog ==
134
+ = 2.0.0 =
135
+ * addition of the hookable function for the user creation.
136
+ * Code optimization for the login check class.
137
+
138
  = 1.0.9 =
139
  * Fixed the issues google redirect issues for after social login to current page.
140
  * Demo link url change.