Dark

Light

Dark

Light

Scroll to top
WordPress
Amitpal Singh
Posted by Amitpal Singh
November 4, 2020

How to add custom role in wordpress?

add_role( 'test', 'Test Role', array( 'read' => true, // True allows that...

Read More
Amitpal Singh
Posted by Amitpal Singh
November 2, 2020

How to enable featured image for category and tags?

Things we will proceed with:1. edit Functions.php2. Create featured-image-for-categories.php file in theme...

Read More
Amitpal Singh
Posted by Amitpal Singh
November 2, 2020

Get Category ID inside Category template

$category = get_queried_object(); echo $category->term_id;

Read More
Woocommerce
Amitpal Singh
Posted by Amitpal Singh
October 26, 2020

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...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 23, 2020

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

// Get $order object from order ID $order = wc_get_order( $order_id );...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 22, 2020

Woocommerce - Getting the order item price and quantity

## For WooCommerce 3+ ## // Getting an instance of the WC_Order...

Read More
Android App Development
Amitpal Singh
Posted by Amitpal Singh
October 19, 2020

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

<script type="text/javascript" charset="utf-8"> document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { var ref =...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 19, 2020

Cordova 2021 Quick Checklist

Here is a complete checklist for cordova based application to start. It...

Read More
PHP
Amitpal Singh
Posted by Amitpal Singh
October 14, 2020

wp_localize_script ajax url working with example tutorial

wp_localize_script ajax url working with example tutorial in wordpress wp_localize_script usage and...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 14, 2020

How to Set Cookie and OTP in php?

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

Read More
Amitpal Singh
Posted by Amitpal Singh
August 5, 2020

Get total from loop in php or Sum values in foreach loop php

In your case IF you want to go with foreach loop than...

Read More
Existing contact updated. array(0) { }