Code Snippets

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 product page. This is useful for stores that require customers to read detailed product…

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 engagement, showcase your latest posts, and enhance your website’s visual appeal. In this guide, we will…

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 HTML format, and if a form includes a first and last name field, a comma sometimes appears…

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 Username Enumeration and can be exploited to discover valid usernames, making it easier for attackers to target specific…

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 today, when I was making snippet to block unwanted query strings URLs in…

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 article. I’m writing a code snippet for WordPress users that will help them permanently…