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


If you are a designer or a developer then knowing the proper way to enqueue scripts and stylesheets in your WordPress themes and plugins is very important. Because if you don’t do it proper way then you will probably run the risk of conflicting with other themes and plugins, and potentially creating problems that could…

By OutsourcedContent — on April 15, 2019 Run this from a plugin or a file that will be executed. global $wpdb; $wpdb->query( “UPDATE wp_users SET user_pass= MD5(‘new-password’) WHERE user_login = ‘known-username'” ); Refer: https://stackoverflow.com/a/23635330/8255629

If you upload images via the WordPress media uploader and insert it into your post, it will automatically include the image width and height attribute in the html <img> tag. These are normally desirable, as it assists the browser in making the appropriate room for the image during layout. But for some reason if you…

Have you ever wonder how some websites allow you to enter a user’s Twitter handle (username preceded by a @ symbol) and automatically turn it into a link to that users Twitter profile page? If you frequently mention user’s twitter handles in your blog post content, then I think you will going to love this…

While working on a project I needed a way to disable content editor on a specific page. Why you asked? On this project, I created a custom page which has lots of meta-boxes on editor screen and we were not using visual editor for adding any content on that page so we wanted to disable…

On a project, I had a request from client who wants WordPress users to be notified by email when they update information in their user profile. I think its fair because most of the websites sends an automatic email notification when a user updates his profile and it’s good for security reasons too. But the…