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


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…

By OutsourcedContent — on October 13, 2017 Add this to footer.php before the closing </body>. <script language=”javascript” type=”text/javascript”> document.getElementsByName(‘es_txt_email’)[0].placeholder=”[email protected]”; </script> Where es_txt_email is the name if the <input>. The above script was used to change the placeholder in the Email Subscribers & Newsletters plugin.

By OutsourcedContent — on September 29, 2017 Use this code snippet to display the first category of a WordPress post. <?php $smello = (array) get_the_category($post_ID])[0]; echo $smello[‘cat_name’]; ?> where $post_ID is the ID of the post whose category is required. Change [0] to [1] to get the second category. Not all posts will…

By OutsourcedContent — on December 10, 2017 Here is the HTML Markup <h4 class=”single-company-tab-wrapper hide-if-no-js”> <a class=”single-company-tabs” href=”#info”>Info</a> <a class=”single-company-tabs” href=”#contact”>Contact</a> </h4> <div id=”info” class=”tab-content”> <p>Content of info tab</p> </div> <div id=”contact” class=”tab-content”> <p>Content of contact tab</p> </div> And here is the jQuery jQuery( document ).ready( function($){ $(‘.tab-content’).hide(); // Hide all tabs first …

Sometime you want to reward your registered user of your website with a special gift available only to them or maybe you have a important announcement/update for them or you simply want to send a message only to them. To accomplish that, this code snippet below creates a new shortcode with which to wrap content…

Pages are one of WordPress’s built-in Post Types. You’ll probably want most of your website Pages to look about the same. But sometimes, though, you may need a specific Page, or a group of Pages, to display or behave differently. This is easily accomplished with custom Page Templates. WordPress allows you to create custom page…
