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

When developing a WordPress theme or plugin, it may be very useful to be able to output all WP Query variables. Here is a simple code snippet to do it easily. Paste the code below on any files, where you’d like to display the WP Query variables. <?php // display all wp query variables global…

In previous article we have shown you how to create a shortcode for PayPal donation button so you can add a donation button easily anywhere you desire. And in this article we will show you how to add WordPress search form in post content with the help of shortcodes. There are times when you might…

Without any doubts, the Contact Form 7 is one of the best WordPress plugin for creating and adding contact forms to your website. The plugin is very easy to set up and use. The only issue with this plugin is that it includes required JavaScript and CSS file on every page regardless of the page…

By OutsourcedContent — on November 19, 2017 Add the following code to functions.php or to a custom plugin to style WooCommerce checkout form fields with sweet Bootstrap 4 styling. /** * Add Bootstrap form styling to WooCommerce fields * * @since 1.0 * @refer http://bit.ly/2zWFMiq */ function iap_wc_bootstrap_form_field_args ($args, $key, $value) { $args[‘input_class’][] = ‘form-control’;…

Couple of months ago, I was looking for a simple WordPress plugin to use on one of my client’s website to accept PayPal donations. I was looking for an easy and flexible way to add a PayPal donation button in posts content without hardcoding links everywhere. There are a couple of interesting plugins I found…
