Disable WooCommerce Marketing menu
Add the following code to the functions.php of your active theme.
add_filter( 'woocommerce_marketing_menu_items', '__return_empty_array' );
This will remove the following Marketing menu added in WooCommerce 4.0


Add the following code to the functions.php of your active theme.
add_filter( 'woocommerce_marketing_menu_items', '__return_empty_array' );
This will remove the following Marketing menu added in WooCommerce 4.0


Contact form 7 is undoubtedly one of the most popular plugins in WordPress plugins directory. It makes our life a lot easier by allowing us to create contact forms without any PHP knowledge and add them in our website with the help of shortcode. The plugin is super easy to set up and use. But…

By OutsourcedContent — on October 12, 2017 You might want to read this post on how to conditionally display fields in Contact Form 7 plugin with simple JavaScript first to get some context. Here we are trying to display a line of text when all checkboxes are checked. Here is the result. Here is the…

In previous article we show you how to clean WordPress admin dashboard by removing WordPress dashboard widgets. In this article, we will discuss how we can remove submenu items from the WordPress admin. Sometimes you might need to remove posts, pages, plugins or other submenus items from the WordPress dashboard. For example, if you are…

Google Maps is probably one of the best services out there for people to quickly get directions online. For business point of view, there are number reasons, why you should embed a Google map into your WordPress website. Whether you want to guide your users to your physical location or maybe you are just using…

By OutsourcedContent — on October 5, 2017 Add this to the active theme’s functions.php. /** * Remove Website From Comments Form * * @since 1.0 * @refer https://millionclues.com/wordpress-tips/remove-websiteurl-from-wordpress-comment-form/ */ function mc_disable_comment_url ($fields) { unset($fields[‘url’]); return $fields; } add_filter(‘comment_form_default_fields’,’mc_disable_comment_url’);

While developing a theme or a plugin, we sometimes need to check if a particular third-party plugin is active and only perform certain actions if it is. This might be due to my customization adding some extra functionality on top of the other plugin. Therefore it doesn’t make sense to have my customization active while…