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
WordPress provides their own logo on user registration and login pages but sometimes it is required to replace that with your/client logo especially for branding purpose. You can easily change the default WordPress logo on the Login page with the help of admin_head WordPress action. Here is a simple code snippet that will allow you…
While posting a comment, WordPress automatically stores commenter’s IP address along with other information in MySQL database. Storing IP address is useful when you want to identify comment author for any unlawful/illegal content or a comment spammers to prevent them for posting anymore spam comments. Although this is a useful feature but in some countries,…
Many of you may have noticed a new trend of circular shape avatars (profile images) in author bio as well as in comments section. You may also be wondering how it’s done or do I need to edit them in Photoshop to make it circular. Editing your avatar in image editing software will only make…
By OutsourcedContent — on August 30, 2017 Bootstrap 4 does not natively support embedding videos on its modal popup windows. Here is how to embed YouTube videos on modal windows. Code from this Stack Overflow post has been modified for this tutorial. Features Video will start playing once the modal window loads. This can be…
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’;…
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…