Code Snippets
10 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.
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
How to Display an Instagram Feed with Images and Videos in WordPress Using the API
Instagram is one of the most powerful social media platforms for engaging with audiences. Displaying your Instagram feed on your WordPress website can boost
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
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
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
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 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
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
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