WooCommerce Redirect to Checkout

Do you want to redirect to woocommerce checkout directly when the user clicks on add to cart button? Then add the following hook in your theme’s functions.php file and save…

Read more »

How to Remove the WordPress Login Error Shake Effect

Do you want to remove the WordPress login screen shake effect when error occur with the wrong credentials enter? Then you just have to add a simple function hook in…

Read more »

Get Unique Values From a JavaScript Array

To get the unique values from a javascript array, we will use a new Set native object. It is very easy and takes less time according to filter method. We…

Read more »

Create Laravel Model, Migration, Controller, and Resource in One Command

Yes, you can create model, migration, controller, and resource (views) with one command in the laravel. You just have to add an additional flag while creating a new model with…

Read more »

Copy to Clipboard with JavaScript – (also for hidden element)

In this trick, I’ll show you how you can copy to a clipboard with javascript. function copyToClipboard() { var copyText = document.getElementById(“myInputId”); copyText.select(); copyText.setSelectionRange(0, 99999); /* For mobile devices */…

Read more »

How to Change Excerpt Length in WordPress

The excerpt is a short description of posts on the blog list page OR archive page and the default excerpt length in WordPress is very short to describe what the…

Read more »

Open All External Links in New Window

If you are searching for a code snippet that will help you to make functionality for external links open in a new window? Then you are at the right place….

Read more »

QR Code Generate With Python

In this trick, we will learn how you can generate QR code with help of python code. It is very easy, just install the library and write a couple of…

Read more »

Send WhatsApp Message Using Python

Yes, you can send a WhatsApp message using two lines of code in python. It is very simple. You need to just install the python library and use it. Install…

Read more »

Transpose of a Matrix in Python

A matrix in python is a rectangular array packed with symbols, expressions, alphabets, and numbers that are arranged in rows and columns but we can transpose it. Transpose matrix means,…

Read more »