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

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