Skip to content

Instantly share code, notes, and snippets.

@thebengalboy
Created July 23, 2018 15:57
Show Gist options
  • Select an option

  • Save thebengalboy/d70d720a8b47d26f1d9642a88b32eb8c to your computer and use it in GitHub Desktop.

Select an option

Save thebengalboy/d70d720a8b47d26f1d9642a88b32eb8c to your computer and use it in GitHub Desktop.

Revisions

  1. thebengalboy created this gist Jul 23, 2018.
    17 changes: 17 additions & 0 deletions function.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    <?php

    if ( ! defined( 'ABSPATH') ) exit;

    add_action( 'admin_head', 'dokan_dashboard_hide_tab' );

    function dokan_dashboard_hide_tab() {
    if ( ! is_admin() ) return;
    ?>
    <style type="text/css">
    .dokan-dashboard .postbox:nth-child(2) {
    display: none;
    }
    </style>
    }

    // Add this snippet(without php starting tag) on the theme function.php file