Skip to content

Instantly share code, notes, and snippets.

@rashedripon
Created December 29, 2019 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rashedripon/9c1646cb516d7824ae4044fadd380dea to your computer and use it in GitHub Desktop.
Save rashedripon/9c1646cb516d7824ae4044fadd380dea to your computer and use it in GitHub Desktop.
Remove progressbar from vendor dashboard
<?php
//Remove progressbar from vendor dashboard
if(class_exists('Dokan_Pro_Dashboard')) {
remove_action( 'dokan_dashboard_before_widgets', array( Dokan_Pro_Dashboard::init(), 'show_profile_progressbar' ), 10 );
}
if(class_exists('Dokan_Pro_Settings')) {
remove_action( 'dokan_settings_load_ajax_response', array( Dokan_Pro_Settings::init(), 'render_pro_settings_load_progressbar' ), 25 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment