Amitpal Singh
Blog

Tutorials and code snippets

Fixes and how-tos for WordPress, WooCommerce, JavaScript, PHP and Cordova, written while building client projects.

Social Media

Whatsapp Payment Invite Link 2021, how to get whatsapp payment link?

Whatsapp Payment Invite Link 2021: To get the Whatsapp Payment option please click on the invitation button. It is avaliable in India.

WordPress

How to add custom role in wordpress?

How to add custom role in wordpress?

WordPress

Get Category ID inside Category template

Get Category ID inside Category template

WordPress

How to enable featured image for category and tags?

Things we will proceed with: 1. edit Functions.php 2. Create featured-image-for-categories.php file in theme or child theme 3. Two placeholder Images…

WooCommerce

Remove variable product from cart with ajax in woocommerce

Create the link on cart using the $cart_item_key instead of the $product_id . Then, on server side, you don’t need to use the…

WooCommerce

WooCommerce: Get Order Info (total, items, etc) From $order Object

WooCommerce: Get Order Info (total, items, etc) From $order Object

WordPress

Custom Elementor Popup

Custom Elementor Popup

WooCommerce

Woocommerce - Getting the order item price and quantity

Woocommerce - Getting the order item price and quantity

Android App Development

Cordova 2021 Quick Checklist

Here is a complete checklist for cordova based application to start. It is easier to go through in simple steps. Step1: Open Command Prompt and go to root…

Android App Development

How to add cordova in app browser plugin code inndex.html?

How to add cordova in app browser plugin code inndex.html?

WordPress

How to use shortcode with ob_start and ob_end_clean() ?

Now use like this anywhere in the page or in between the post. ob_get_contents() will help to tell the actual position of the shortcode.

PHP

How to Set Cookie and OTP in php?

You can set otp as cookie and then retrieve to match during login.