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 November 10, 2017 To retrieve the post title of a post as saved in the wp_posts table in the WordPress database use this <?php echo get_post_field( ‘post_title’, $post_id, ‘raw’ ); ?> If you use get_the_title() function, WordPress applies the ‘the_title‘ filter before returning the value.

By OutsourcedContent — on June 15, 2021 The easiest way to find the Post ID, Page ID or Product ID in WordPress is to hover over the post in WordPress admin and check the link. The number after post= and before & is the post ID. You can also find this in the address bar…

This is not a function that you would need to use on daily basis, but I came across a reason to use it recently on a project and I thought it might be a good idea to share it here too. All it does is limit the post title by the number of words, just…

I do not use that many images in my posts, but when I do, I do it right. By that I mean, I make sure the image is cropped and optimized for the web (I use Kraken.io) and I rename the image to mean something rather than it saying IMG_0507.img. While naming stuff, I like…

By OutsourcedContent — on January 6, 2018 If Debug logging is enabled, simply use the error_log() function and it will be written to /wp-content/debug.log . Refer this article to see how it can be done: Enable Debug Logging In WordPress You can also write the error_log to a file. WP_DEBUG need not be set to…

In this article we will show you how to create a back to top button or link on your WordPress website. Back to top button can be useful to visitors reading long articles or browsing large pages. After reading a long article, scrolling browser window back to top can be a little frustrating and not…
