<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: jibahaw</title>
    <description>The latest articles on DEV Community by jibahaw (@jibahaw144).</description>
    <link>https://dev.to/jibahaw144</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F871436%2Ffceb1e7d-c0b8-4ec5-a45f-17486ce251f3.png</url>
      <title>DEV Community: jibahaw</title>
      <link>https://dev.to/jibahaw144</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jibahaw144"/>
    <language>en</language>
    <item>
      <title>ways to Disable WooCommerce Reviews Tab In WordPress</title>
      <dc:creator>jibahaw</dc:creator>
      <pubDate>Thu, 02 Jun 2022 09:08:20 +0000</pubDate>
      <link>https://dev.to/jibahaw144/ways-to-disable-woocommerce-reviews-tab-in-wordpress-54f2</link>
      <guid>https://dev.to/jibahaw144/ways-to-disable-woocommerce-reviews-tab-in-wordpress-54f2</guid>
      <description>&lt;p&gt;When working with plugin like WooCommerce, it is hard to avoid customization, a lots of it. In my recent project, I adopted WooCommerce to achieve product management without shopping cart experience. You guessed it, disable and hide so many options.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option 1: Using a Plugin&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Disable Comments is a plugin that allows administrators to globally disable comments on any post type, including custom post type. As review is just using comments feature for Product (custom post type). So we can disable product review and hide the tab in product page by just disabling comment on Product.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option 2: woocommerce_product_tabs filter&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The other way is to use woocommerce_product_tabs filter provided by WooCommerce plugin. The filter gives us direct control to hide the tab(s) we don’t need.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Disable product review (tab)
function woo_remove_product_tabs($tabs) {
    unset($tabs['description']);                // Remove Description tab
    unset($tabs['additional_information']);     // Remove Additional Information tab
    unset($tabs['reviews']);                    // Remove Reviews tab

    return $tabs;
}

add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Reference Blog&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.gomahamaya.com/disable-woocommerce-reviews-tab/"&gt;ways to Disable WooCommerce Reviews Tab In WordPress&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How To Fix Defer Parsing Of JavaScript In WordPress</title>
      <dc:creator>jibahaw</dc:creator>
      <pubDate>Thu, 02 Jun 2022 08:57:25 +0000</pubDate>
      <link>https://dev.to/jibahaw144/how-to-fix-defer-parsing-of-javascript-in-wordpress-ica</link>
      <guid>https://dev.to/jibahaw144/how-to-fix-defer-parsing-of-javascript-in-wordpress-ica</guid>
      <description>&lt;p&gt;&lt;strong&gt;Why Should You Defer Parsing of JavaScript?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you open a website, your browser will receive the site’s content from the server and loads the code from top to bottom. However, if it finds JavaScript, the loading process will be interrupted until it finishes downloading all the JavaScript.&lt;/p&gt;

&lt;p&gt;To solve this issue, you can defer parsing of JavaScript, which allows the browser to load the full content without waiting for the scripts to load. By implementing this task, JavaScript parsing won’t negatively affect your website’s loading time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Defer Parsing of JavaScript in WordPress?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This section will show you a step-by-step guide to defer parsing of JavaScript. To top it off, we’ll also show you how to analyze the problem and test the changes after applying the task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Analyze the site&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To find out whether you should defer parsing of JavaScript in your WordPress website, analyze it using site speed testing tools like GTMetrix. As an example, here is the performance result of a website before implementing the method.&lt;br&gt;
It shows that there’s an issue regarding JavaScript parsing, which means the website site needs to defer it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Defer Parsing of JavaScript Without plugin (Only For WordPress users)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For that, you need to log in to your wp-admin. Then click over appearance then theme editor. Inside that find the Function.php file and paste the following code&lt;/p&gt;

&lt;p&gt;&lt;code&gt;function defer_parsing_of_js ( $url ) {&lt;br&gt;
if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;&lt;br&gt;
if ( strpos( $url, ‘jquery.js’ ) ) return $url;&lt;br&gt;
return “$url’ defer “;&lt;br&gt;
}&lt;br&gt;
add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reference Blog&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.gomahamaya.com/defer-parsing-of-javascript/"&gt;How To Fix Defer Parsing Of JavaScript In WordPress&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
