Dark

Light

Dark

Light

Scroll to top
Amitpal Singh
Posted by Amitpal Singh
August 4, 2020

Create a table in wordpress with functions.php

Create a table in wordpress with functions.php

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

Get url of product's images in wordpress (woocommerce)

$product = wc_get_product( $product_id ); $image_id = $product->get_image_id(); $image_url = wp_get_attachment_image_url( $image_id,...

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

Send email template with file_get_contents in wordpress

$body = file_get_contents(WP_CONTENT_DIR . '/themes/theme-name/emailtemplate.html'); $body = str_replace("#name#",$_POST['name'],$body); $body = str_replace("#email#",'<a style="color:#fff"...

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

How to validate email using jQuery?

To validate email using jQuery, use the regex pattern. You can try...

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

Get cart item name, quantity all details woocommerce

To get Product Image and Regular & Sale Price:

Read More
Amitpal Singh
Posted by Amitpal Singh
July 29, 2020

Display WooCommerce products with a shortcode using a custom meta_query

This is normal that it doesn’t return anything as you need to...

Read More
Amitpal Singh
Posted by Amitpal Singh
July 28, 2020

.htaccess redirect all pages to new domain

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^YOURDOMAIN\.example$ [NC] RewriteRule ^(.*)$...

Read More