Dark

Light

Dark

Light

Scroll to top
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
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

Custom Elementor Popup

// Add Shortcode function elementor_poup( $atts ) { // Attributes $atts =...

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
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 2020 Quick Checklist

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

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

How to use shortcode with ob_start and ob_end_clean() ?

Now use [shortcodename] like this anywhere in the page or in between...

Read More