Category Archives: How-to

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

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

How to integrate a WordPress blog in your existing website

How To Integrate A WordPress Blog In Your Existing Website?

WordPress is amazing in its nature. You can convert it into anything and integrate it with any PHP website. You can even set the degree of integration. Like, there may be only a few features of WordPress you want to use when integrating it with your website. For example, you want to display the recent blog posts on your website’s homepage. Your website is in PHP and WordPress blog is installed in another folder. In this article, we will show you the steps that how you can achieve this awesomeness, learning how to integrate a WordPress blog in your existing website?

Continue reading