Privacy Policy

Add Privacy Policy Checkbox in Registration Form

By default, the user registration for WordPress is off. Once you enable it, you’ll find it doesn’t let you gather much information from users when they first register on your site. It has basic fields, including Username or Email Address and Password

Custom fields empower you to get extra information from your users, such as an address or phone number, or ask them to accept your Terms & Conditions, Privacy Policy, etc.

Important: The WordPress Checkboxes or checkboxes at any website are legal, as clicking on a checkbox is urging a signature on a written contract.

Here we’ll explain how to add the custom field “Privacy Policy” in the WordPress registration form with custom coding. So, make sure you read this article till the end.

Let’s get started!

Enable WordPress Registration Form

Note: We assume you’ve already enabled the WordPress registration form.

If not, simply go to the left sidebar of the admin dashboard, navigate to Settings, and click the General option.

General Settings

The General Settings screen will open up. Scroll down a bit, and tick mark the Membership checkbox. 

Membership Checkbox

When you are done, scroll done and click on the Save Changes button to save the settings. 

Now you can see the registration link on your login page:

Register Button

Adding Custom Field  “Privacy Policy” on the Registration Form 

Here are going to add the custom “Privacy Policy” checkbox to the user registration form in WordPress. This process will be carried out using custom coding, so buckle up!

1. Hook for Adding Privacy Policy Field on the Registration Form

Note: register_form Allow rendering of new HTML element.

Paste the following code in the child theme’s functions.php file to add the Privacy Policy checkbox on the registration form.

Continue reading

wordpress tips and tricks, wordpress tips

Select Dropdown Countries Template for WordPress developers

Hello WordPressers,

I was working on a project where I had to add the countries dropdown on the signup page. So, for making select dropdown countries selection sticky in the case of error at signup, I needed to check the $_POST[‘countries’] with every option in the select dropdown. It seems a redundant effort to me as It took me 30 mins to do this task.

Continue reading

Google drive API, Google Drive PHP API

Diving in Google Drive APIs – Authentication

In this part 2 of the Google Drive Series,  We are going to dig the most important and confusing concept of connecting with Google APIs. Yes, I wrote confusing because there many developers who get confused when they need to implement connectivity of their application to Google APIs. I will try to make this concept easier in this post.

I assume you have read the first part of this series and have created a project in Google Developers Console and before than that have downloaded the PHP Client libraries to play with.

Continue reading

Google drive API, Google Drive PHP API

Diving in Google Drive APIs

Hello developers! I know this is something other than WordPress at WPBrigade but we can’t forget the importance and usage of Google Apps in the WordPress community.

Analytify is one kind of WordPress plugin that uses Google Analytics APIs heavily and simplifying the life of data lovers in WordPress. It displays all the actionable Analytics in one dashboard and shows you Analytics, page by page.

So, I have decided to start a series of blog posts on Google Drive APIs in which I will walk you through some interesting things about the Drive SDK. I will take you from the scratch and reach a point where you will have a good knowledge of Drive SDK and can use it in your future web apps. If this series helps you in any way, shoot it out and Share it with your friends and there is no reason not to take interest in learning Google Drive APIs as it’s usage is totally free.

Continue reading