How to Automatically Create Post Tags from Post Title - How to Automatically Create Post Tags from Post Title

How to Automatically Create Post Tags from Post Title

Here is a simple WordPress plugin that will automatically add tags from the post title when saving posts. To use this plugin, simply copy and paste the code into a new file and save it as auto-tag.php in the wp-content/plugins directory of your WordPress site. Then, go to the Plugins page in the WordPress admin … Read full article →

Hide your WordPress site from Google and other Search Engines - Hide your WordPress site from Google and other Search Engines

Hide your WordPress site from Google and other Search Engines

If you want to hide your WordPress site from search engines, you can use the “Discourage search engines from indexing this site” option in the “Reading Settings” page of your WordPress dashboard. To access this option, follow these steps: This will add a “noindex” directive to your site’s pages, which tells search engines not to … Read full article →

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:

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:

display a list of wordpress core files anywhere on your website - Display List of all WordPress core files

Display List of all WordPress core files

Here is an example of a simple WordPress plugin that uses a shortcode to display a list of files from the WordPress repository on GitHub: <?php /* Plugin Name: List WordPress Core Files Description: Displays a list of files from the WordPress repository on GitHub. */ function wpfl_shortcode_handler( $atts ) { // Parse shortcode attributes … Read full article →

wpcli regex search - Use Regex with WP CLI to 🔎 Search & Replace in Database

Use Regex with WP CLI to 🔎 Search & Replace in Database

When cleaning websites that have large databases, regular text editors can’t even open the database dumps (Notepad++ supports files up to 2GB in size). So to run a search and replace on large database dumps I suggest using regex-replace line-by-line in PHP, or setting up WPCLI and running regex search & replace. Here is a … Read full article →

SEO Friendly WordPress Images with Auto Alt Tag plugin - SEO Friendly WordPress Images with Auto Alt Tag plugin

SEO Friendly WordPress Images with Auto Alt Tag plugin

Here is a simple WordPress plugin that will automatically add the post title as the alt tag to featured images and other images in the post content improving traffic from search engines. Simply install & activate the and it will automatically add Alt Tag to images in new posts. <?php /** * Plugin Name: Auto Alt … 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 →

bypass cache wordpress - How to bypass cache and always view uncached content in WordPress

How to bypass cache and always view uncached content in WordPress

In most cases, the cache can be “tricked” by adding a random variable to the URL during testing, for example https://wpxss.com/application/wp-includes/how-to-bypass-cache-and-always-view-uncached-content-in-wordpress/?a=123 In this case, a new cache page is generated and does not load cached content that already exists.

after - How to add text after price in WooCommerce

How to add text after price in WooCommerce

To put a string after the price of WooCommerce product and cart pages, use the WooCommerce filters woocommerce_cart_item_price and woocommerce_get_price_html Add the following code to your active theme functions.php file. Make sure to change <span class=”price-suffix”>TEXT AFTER THE PRICE</span> with your text or HTML code. NEXT: How to Add text before the price in WooCommerce