This code snippet disables the schema generated by the All in One SEO (AIOSEO) plugin on singular posts or pages (is_singular()) and archive pages (is_archive()). By hooking into the aioseo_schema_disable filter, the function checks the type of page being loaded. If it matches a singular post or archive page, the function returns true, effectively turning […]
hooks
Add Purchased Products Column to WooCommerce Orders
In WooCommerce, checking the purchased items for each order can be cumbersome as it often requires opening each individual order or downloading reports. However, there’s a faster solution. This code snippet restores a useful feature that was once part of WooCommerce by adding a new column to the WooCommerce orders list (Woocommerce>Orders). The column displays […]
How To Customize Yoast SEO Breadcrumbs in WordPress
The Yoast SEO plugin is a popular choice for optimizing content for search engines, and it includes a feature for generating breadcrumbs. Breadcrumbs are a navigational aid that helps users understand the site structure and easily navigate back to previous pages. This hook allows users to add a custom “Blog” link in the Yoast SEO […]
How to remove Rank Math plugin dashboard notification
Rank Math is a great SEO plugin that do an amazing job. The only thing that constantly bothers me and my clients is the annoying alerts inside the Wordpress admin area. Unfortunately they don’t disappear if you click on the “X”. If you too are fed up with the notifications from the Rank Math plugin, […]
Replacing original image with a smaller copy in Wordpress
This hook is particularly beneficial for those aiming to optimize server disk space. If you frequently upload large images to your WordPress site, you may encounter the challenge of expanding disk space over time. While some web hosts might not find this problematic, if you’re hosted on Rocket.net, additional charges may apply for the space […]