Code Snippets

9 articles in this category

WordPress Code Snippets - Useful Code for Developers

Collection of useful WordPress code snippets for developers. Copy and paste ready code for WooCommerce, security, SEO, and customization.

WordPress
WordPress Code Snipp

How to Disable Add to Cart in WooCommerce and Redirect to Product Page

WooCommerce is a powerful eCommerce platform for WordPress, but sometimes you may want to disable the "Add to Cart" button and instead direct customers to the

WordPress
Disable Add to Cart

How to Send Plain Text Emails in Forminator and Remove Commas from Names

Forminator is a powerful WordPress form plugin that allows you to create custom forms easily. However, by default, Forminator sends email notifications in

WordPress
Send Plain Text Emai

How to Fix the Username Enumeration Vulnerability in WordPress

The vulnerability you're facing is related to WordPress' REST API endpoint /wp-json/wp/v2/users/, which allows anyone to enumerate usernames. This is known as

WordPress
Fix the Username Enu

How to disable a Code Snippet from Database in WordPress

Everyone think that code snippets plugin is something that you can use to install any PHP code on WordPress without breaking the site. I encountered an issue

WordPress
disable a Code Snipp

How to Block Unwanted Query Strings URLs in WordPress

If you are getting page indexing issue i.e., Duplicate without user-selected canonical on Google Search Console, then you are going to get an answer in this

WordPress
Block Unwanted Query

4 Ways to Remove WordPress Version Number

Be default, WordPress adds its version name as meta tag in <head> section which opens the door for hackers. By removing the WordPress version number

WordPress
4 Ways to Remove Wor

How to Hide Pagination Pages from Search WordPress (Yoast SEO)

I have been sharing WordPress solutions for a quite sometime now, recently I stumbled upon on a very serious issue related to SEO. Pagination is a common web

WordPress
Hide Pagination Page

How to Enable SVG Files Upload in WordPress

SVG (Scalable Vector Graphics) files are disabled for upload in WordPress by default due to security reasons. WordPress by default don't let its users to

WordPress
Enable SVG Files Upl