The PSW Front-end Login & Registration plugin makes it easy to create and manage login and registration forms directly on your site. By redirecting users to specific pages dedicated to these actions, you strengthen the security of your site by reducing exposure to cyberattacks targeting standard entry points like wp-admin
or wp-login.php
. This plugin also provides options to disable the default login page and set up email account validation. It is an ideal tool for site administrators looking for a more user-friendly and secure solution for managing user logins and registrations.
Main features:
- Multilingual Support : The extension supports multiple languages including French and English. It is translation ready with a
.pot
file. - Responsive Design : Compatible with mobile, tablet and desktop to provide an optimal user experience on all devices.
- Smooth Redirection Process : Improves user experience by redirecting users to personalized pages after login or registration.
- Secure Password Recovery : Uses a token authentication system to secure password reset for registered users.
- Option to disable default login URL : Replace the default WordPress login link with a custom URL for added security.
- Social Login Integration : Allows users to log in through Google or Facebook for faster and easier login.
Important note:
To enable the registration form, make sure that user registration is enabled in your site settings. Go to Settings -> General , then check the Membership – Anyone can register option.
Installing the extension
From the WordPress interface:
- Go to Extensions -> Add .
- Click Upload Extension and choose the
.zip
file. - Click Install Now .
- Once installed, click Enable Extension .
Manual installation:
- Upload the plugin
.zip
file to the/wp-content/plugins/
directory. - Go to Plugins in WordPress and activate the plugin.
After activation:
- Go to Settings -> PSW – Front-end Login & Registration to configure the extension.
- Select the default user role for new registrations.
- Add email addresses for additional account creation notifications.
- Choose the page on which the login or registration form should appear.
- (Optional) Disable the default WordPress login link for added security.
By following these steps, you will not only improve the security of your site, but also provide a smoother and more professional user experience to your visitors. Social login integration with Google and Facebook allows users to quickly register and log in without creating a new password. For any site administrator who cares about security and usability, the PSW Front-end Login & Registration plugin is a must-have choice.
Installation instructions for Google API Client and Facebook Graph SDK
Integrating Google and Facebook services into your WordPress projects can greatly enhance the functionality of your site. In this article, we’ll show you how to install the Google API Client and Facebook Graph SDK using Composer , an indispensable tool for managing dependencies in your projects.
Prerequisites
Before you begin, make sure you have Composer installed on your machine. If you haven't already, here's how to do it:
- Download and install Composer : Go to https://getcomposer.org/ and follow the instructions to install Composer.
- Navigate to your plugin directory : If you are developing a WordPress plugin and want to add Google and Facebook services to it, you will first need to navigate to your plugin directory in your terminal. For example:
cd wp-content/plugins/psw-login-and-registration
- Install the Google API Client and Facebook Graph SDK Libraries : Once in your plugin directory, run the following command to add the necessary dependencies via Composer:
composer require google/apiclient:^2.17 facebook/graph-sdk:^5.1
This command will download the appropriate versions of the Google API Client and Facebook Graph SDK, and add them to your project.
- Automatic inclusion of libraries : After installation, you need to make sure that the libraries are loaded correctly in your plugin. To do this, add the autoloader file generated by Composer to your main plugin file. For example, in the
psw-login-and-registration.php
file:
if (file_exists(plugin_dir_path( __FILE__ ) . 'vendor/autoload.php')) { require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; }
This autoload.php
file is located in the vendor
directory and makes sure that all classes from installed libraries are automatically loaded.
Conclusion
With these steps, you have now integrated the Google API Client and Facebook Graph SDK into your WordPress project. These tools offer powerful features that can improve the user experience on your site, whether it’s for logging in with Google or Facebook accounts, or for integrating services like Google Analytics, YouTube, or Facebook APIs. Feel free to explore the official Google API Client and Facebook Graph SDK documentation to learn more about advanced features.
Leave a comments: