phpinfo WordPress Shortcode - phpinfo() WordPress Shortcode

phpinfo() WordPress Shortcode

Here is an example of a simple WordPress plugin that uses the [phpinfo] shortcode to display PHP information similar to what the phpinfo() function does: <?php /* Plugin Name: PHP Info Shortcode Description: Displays PHP information using the [phpinfo] shortcode. */ function phpinfo_shortcode_handler( $atts ) { // Build the HTML for the data $html = … Read full article →

how to hide a plugin from wordpress plugins page - How to hide a plugin from the WordPress plugins list 🙈

How to hide a plugin from the WordPress plugins list 🙈

wp-admin/plugins.php displays the plugins list table using the array $plugins_all which contains information on all installed plugins. We can use pre_current_active_plugins hook to perform actions before the plugin information is displayed on this page. TIP: The best way to understand what a hook does is to look at where it occurs in the source code. … Read full article →

Display visitor IP address without any WordPress plugin - Display visitor IP address without any plugin

Display visitor IP address without any plugin

Here is how you can create a WordPress plugin with a shortcode to display the user’s IP address: <?php /* * Plugin Name: IP * Plugin URI: https://wpxss.com/application/ip * Description: Provides a shortcode to display the user’s IP address. * Version: 1.0 * Author: Stefan Pejcic * Author URI: https://pejcic.rs */ function ip_shortcode( $atts ) … Read full article →

Bulk Delete Millions of WooCommerce Products using WP CLI - 🗑️ Bulk Delete WooCommerce Products with WP CLI

🗑️ Bulk Delete WooCommerce Products with WP CLI

Here are a few useful one-liners that you can use to quickly remove all WooCommerce products from your store. Another approach: PRO TIP:If you are considering deleting items in WooCommerce, please be aware that this action cannot be undone. Once you have deleted an item, it will be permanently gone from your store. Before taking … Read full article →

Top 5 WordPress GDPR plugins in 2022 - Top 5 WordPress GDPR plugins in 2023

Top 5 WordPress GDPR plugins in 2023

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 full article →

Enable HSTS Preload for a WordPress website - Enable HSTS Preload for a WordPress website

Enable HSTS Preload for a WordPress website

To enable HSTS Preload on a WordPress website (https://hstspreload.org/?domain=wpxss.com) you need to add the following code snippet in the .htaccess file: If you have access to the server settings *(You are using a VPS or DEDICATED server) then you can enable it server-wide for all domains by adding the snippet to the /etc/apache2/conf.d/includes/pre_main_global.conf file TIP: … Read full article →

Disable WordPress Comments - Disable WordPress Comments

Disable WordPress Comments

There are several ways to disable comments in WordPress: From the WordPress administration panel This will disable comments on all new posts and pages. If you want to disable comments on existing posts and pages, you can do so by editing each post or page and unchecking the “Allow comments” option. Using a plugin There … Read full article →

How to Add Text over Image in WordPress - How to Add Text over Image in WordPress

How to Add Text over Image in WordPress

In this blog, I am going to show youtwo built-in methods to easily add text to any image on your WordPress website. 1. Add text over image using Cover Block Click the plus button to add new block and search for “Cover” Then add your image and you can add text over it. the result? … Read full article →

SVN Checkout a WordPress plugin - SVN Checkout a WordPress plugin

SVN Checkout a WordPress plugin

SVN, or Subversion, is a version control system similar to Git that can be used via the command line, or one of numerous GUI applications, such as Tortoise SVN or SmartSVN. In this guide, I will use TortoiseSVN software to checkout a WordPress plugin. Step 1. First, download and install TortoiseSVN software: https://tortoisesvn.net/downloads.html Step 2. After installation, you … Read full article →