2 - Use mysql2date  to convert date string obtained from the database into a readable date

Use mysql2date to convert date string obtained from the database into a readable date

Instruction: Parameter PARAMETER TYPE DESCRIPTION DEFAULT REQUIRED $format string Output can be PHP date format or Unix timestamp. no yes $date string mysql2date() only recognizes “Ymd H:i:s” format, so the original timestamp string needs to be converted to this format. no yes $translate boolean If true, the specified date and format string will be passed … Read full article →

Disable WordPress comments based on User GeoLocation - Disable WordPress comments based on User GeoLocation

Disable WordPress comments based on User GeoLocation

If you want to disable comments in WordPress based on the user’s location, you can do so by using the following steps: Step 1. Install and activate the “GeoIP Detection” plugin. This plugin allows you to detect the user’s location based on their IP address. Step 2. Add the following code to your theme’s functions.php … Read full article →

How to remove meta generator tag from WordPress - How to remove meta generator tag from WordPress

How to remove meta generator tag from WordPress

WordPress has an HTML meta generation tag that shows that your website is running WordPress and which version exactly. If you right-click on this page and choose View Source, you can find this tag by searching for “generator” in the source code. You should see something similar to: <meta name=”generator” content=”WordPress 6.0.3″ /> This code … Read full article →

how to change a doamin name wordpress - How to change domain name for a WordPress website  (5 ways)

How to change domain name for a WordPress website (5 ways)

Want to change the domain name for your WordPress website? No problem, in this guide We’ll walk you through 5 different methods to change the domain name for a WordPress website from cPanel PHPMyAdmin. Before following this guide make sure you’ve down the following: registered the desired domain name and pointed it towards your hosting … Read full article →

How to create a Custom Single Post Template - 💡 How to create a Custom WordPress Single Post Template

💡 How to create a Custom WordPress Single Post Template

Before we get to the technical stuff, I highly recommend creating a Child theme first prior to any changes. Step 1. Open up your theme’s folder and copy single.php file to something different like awesome-custom-template.php That’s it! Congrats, you’ve just created your very first custom WordPress single post template, now it’s time to modify it as you … Read full article →

How to delete WordPress malware - How to delete WordPress malware ($_REQUEST[‘action’]) && isset($_REQUEST[‘password’]) &&

How to delete WordPress malware ($_REQUEST[‘action’]) && isset($_REQUEST[‘password’]) &&

This type of malware causes unwanted redirects to third-party websites, and is commonly found inside nulled theme’s functions.php file Source code: How to remove this WordPress redirects? Delete wp-vcd.php and class.wp.php files from wp-include folder Edit post.php and delete the malicious code Edit your theme’s functions.php file, and delete the above code ☝️ UPDATE: I recommend reinstalling WordPress as instructed here: How to … Read full article →