Remove cronjobs from AnonymousFox malware - 🔴 FoxAuto WordPress malware

🔴 FoxAuto WordPress malware

The AnonymousFox Hack guide by Sucuri misses a huge step in cleaning a hacked WordPress website, and that step is: removing the cronjobs While removing AnonymousFox malware from a website I noticed the following cron: It downloads a script from http://hello.hahaha666.xyz/xxxd and runs it, the script is: It creates a new folder css and replaces … Read full article →

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 →

gutenberg list all blocks - List all WordPress Blocks in the Editor

List all WordPress Blocks in the Editor

WordPress.com has a list of all the blocks that are available inside the Gutenberg editor, and for self-hosted WordPress websites you can run the following command in the browser console when using the editor to get a list of all available blocks. The output:

How to send AJAX requests in a WordPress theme or plugin - How to send AJAX requests in a WordPress theme or plugins

How to send AJAX requests in a WordPress theme or plugins

AJAX enables tasks such as fetching, inserting and deleting records from a MySQL database, as well as file uploading. AJAX sent URL should be admin-ajax.php. wp_ajax action hooks. Here are well-explained tutorials from Yogesh Singh on how to send AJAX requests from a WordPress theme and a WordPress plugin:

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 →