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:

Looks like somethings gone wrong. Wait a couple seconds, and then try again.

Looks like something’s gone wrong. Wait a couple seconds, and then try again.

When editing the menu in customizer the changes failed to save with the error message: Looks like something’s gone wrong. Wait a couple seconds, and then try again. And when inspecting the page the following error appears: POST 403 (Forbidden) The 403 error is caused by something blocking access to the file such as … Read more

How to add the | separator back in Yoast SEO plugin

The pipe ( | ) and tilde ( ~ ) separators are removed from Yoast SEO plugin 17.1. It was done because Google routinely alters these symbols in search results, according to Yoast: To add these separators back to yoastSEO plugin, simply add the following inside your active theme function.php file: and under Search … Read more

Yoast SEO is (kind of) incompatible with PHP8

Yoast SEO is compatible with PHP 8 and PHP 8.1 but the Composer that YoastSEO is using doesn’t yes support PHP 8.0 so you might experience problems when editing posts&pages in WordPress. According to this comment there are still 19 other PHP version incompatibilities remaining to be fixed. 😲 So turns out that YoastSEO is … Read more

Exclude WordPress cache & backup folders from Softaculous backup

If you are using Softaculous backups you may notice that Softaculous backups also the cache folders (wp-content/cache and wp-content/litespeed) and backups created by WordPress backup plugins (wp-content/updraft & wp-content/ai1wm-backup). This significantly increases the size of Softaculous backup files. To exclude these folders from Softaculous backups SSH into your server and navigate to the following path: Copy … Read more

Top 5 WordPress Backup plugins

Website backups are critical for WordPress users who want to build a website on their own.Backing up the site on a regular basis can help us not only save the prior data, but also restore it quickly in the event of technical issues, website attacks, and other problems. “Whew! Glad I didn’t waste my time … Read more

5 Plugins to copy posts or pages in WordPress

The ability to copy/clone a post or a page in WordPress is a function that we would like to see added in future versions of WordPress CMS. Until then, we’ll have to rely on plugins. 🙂 Here are 5 of the most popular plugins for easily cloning and copying articles. Yoast Duplicate Post With over … Read more

Best WordPress membership plugins

Using a WordPress membership plugin to earn revenue through paid memberships is a fantastic idea. They provide you the option of restricting access to some or all content to subscribers only. Subscription payments can be one-time or ongoing, with the latter providing a stable source of income. Types of membership sites WordPress membership sites (also … Read more

Top 5 WordPress GDPR plugins in 2022

Since the General Data Protection Regulation (GDPR) was applicable back in 2018, website owners have been scrambling to get their websites up to standard and avoid huge fines. Years later, GDPR fines continue, and small businesses are certainly not immune. Although you may receive a warning before being fined, there is no reason to take the risk. If you … Read more