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

wordpress php usage statistics - WordPress PHP Version Usage Statistics UPDATED

WordPress PHP Version Usage Statistics UPDATED

PHP versions prior to PHP 7.4 are end-of-life (EOL), meaning they no longer receive updates. Because of this, your site may be exposed to security vulnerabilities. It’s not just the security implications though of running an older PHP version, it’s the performance impact as well. According to PHPBenchmarks, PHP 5.6 is at least 48% slower than … Read full article →

PHP Fatal Error Uncaught Error Call to undefined function exec - WP-CLI Not Working: Call to undefined function exec()

WP-CLI Not Working: Call to undefined function exec()

For some operations such as database export, WP-CLI uses PHP exec() function which is disabled on most shared hosting servers. So if you do wp db export and no file was created, make sure to check your error_log file and if you notice this error: PHP Fatal Error: Uncaught Error: Call to undefined function exec() … Read full article →

change image url in wp database - Change image URL 🖼️ in WordPress database

Change image URL 🖼️ in WordPress database

Many users choose to host their images on an external service to reduce the load on their hosting. If you are interested in doing this, you will only have to change the location of all the images that you have already uploaded. To do this, you need to make two SQL queries in your database: 1. … Read full article →