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


Although it’s not really a huge deal but some people might want to replace the default welcome message “Howdy, admin” in the WordPress admin bar. To replace “Howdy, admin” in WordPress admin bar, you can use this code snippet below. Using this snippet now, your welcome message will read “Welcome! admin” instead of default “Howdy,…

Automatic background updates were introduced in WordPress 3.7 in an effort to promote better security, and to streamline the update experience overall. A typical WordPress install will now be able to automatically update itself when there is a new minor/security release available without any user input. For example, WordPress will automatically update itself from WordPress…

By OutsourcedContent — on September 12, 2017 boolval() is a PHP function that was introduced in PHP 5.5. If you try to use it on a server that runs PHP 5.4 and lower, you will get an error like this: Fatal error: Call to undefined function boolval() in /path/to/file/file.php on line 12 To fix this…

WordPress has a very useful feature which will automatically save your current draft every 30 seconds, as you type and you will not even notice. You can change the time interval settings on how often WordPress auto saves by adding a setting in the wp-config.php file. Let’s say you want to autosave drafts every 10…

Prior to WordPress 3.6, we had to run a query to retrieve all media attachments to a specific post. We had to do something like this. // show all WordPress post attachments $args = array( ‘post_type’ => ‘attachment’, ‘posts_per_page’ => -1, ‘post_status’ => ‘any’, ‘post_parent’ => $post->ID ); $attachments = get_posts( $args ); if (…

Comment system is an integral part of WordPress and that’s why we are always looking for ways to customize WordPress comments. In earlier articles, we have already seen how to use circular shaped avatars, change reply link text in threaded comments, highlight post author comments and how to automatically link twitter username in comments. In…
