Code Snippets

9 articles

WordPress Code Snipp
Guide

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.

Disable Add to Cart
Guide

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

Send Plain Text Emai
Guide

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

Fix the Username Enu
Guide

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

disable a Code Snipp
Guide

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

Block Unwanted Query
Guide

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

4 Ways to Remove Wor
Guide

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

Hide Pagination Page
Guide

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

Enable SVG Files Upl
Guide

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