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


By OutsourcedContent — on December 9, 2017 /** * Modify WordPress Main Query – The Right Way * * @refer https://millionclues.com/wordpress-tips/modify-wordpress-main-query/ */ function modify_wp_main_query_done_right( $query ) { if ( $query->is_main_query() ) { $query->query_vars[‘meta_key’] = ‘statusverified_13141’; $query->query_vars[‘meta_value’] = 1; } } add_action( ‘pre_get_posts’, ‘modify_wp_main_query_done_right’ ); Refer WP Query to discover other query_vars

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…

WordPress comes with a number of in-built widgets which allow you to easily add additional functionality to your WordPress theme. You can use WordPress Widgets to add content and features to your sidebars or to any other predefined widget locations. But nobody uses all the default widgets. In fact, there are probably a few default…

By OutsourcedContent — on June 11, 2019 We have already discussed error_log here. The current_filter() function will return the current WordPress filter or action calling a specific function. The return type is string, so it’s straight forward to just use it. Add the following inside the function to know which WordPress action or filter is…

Browser caching can help to reduce server load by reducing the number of requests per page. By setting the correct file headers on static files that don’t change (like Images, CSS, JavaScript etc) browsers will then cache these files on the user’s computer. This technique allows the browser to check to see if files have…

The WordPress Excerpt is an optional summary or description of a post; in short, a post summary. One of the wonderful thing about Excerpt is that it replaces the full content in RSS feeds when the option to display summaries is selected in reading settings. Usually bloggers use excerpts on post stream and archive pages…
