problem by remove action
-
Hi, In the previous versions, I would disable the actions here:
remove_action('dokan_dashboard_right_widgets', array(Dokan_Template_Dashboard::init(), 'get_sales_report_chart_widget'), 10 );
But in version 3.0 this code is error
Because of changes in the coreFatal error
: Uncaught Error: Call to undefined method Dokan_Template_Dashboard::init() in F:\xampp\htdocs\newkala44\wp-content\plugins\dokan-plus-plus\classes\class-dashboard.php:57 Stack trace: #0 F:\xampp\htdocs\newkala44\wp-includes\class-wp-hook.php(288): SHH_DOKAN_PLUS_PLUS_Dashboard->remove_widgets_dashboard(”) #1 F:\xampp\htdocs\newkala44\wp-includes\class-wp-hook.php(312): WP_Hook->apply_filters(”, Array) #2 F:\xampp\htdocs\newkala44\wp-includes\plugin.php(478): WP_Hook->do_action(Array) #3 F:\xampp\htdocs\newkala44\wp-content\plugins\dokan-lite\templates\dashboard\dashboard.php(24): do_action(‘dokan_dashboard…’) #4 F:\xampp\htdocs\newkala44\wp-content\plugins\dokan-lite\includes\functions.php(893): include(‘F:\\xampp\\htdocs…’) #5 F:\xampp\htdocs\newkala44\wp-content\plugins\dokan-lite\includes\Shortcodes\Dashboard.php(84): dokan_get_template_part(‘dashboard/dashb…’) #6 F:\xampp\htdocs\newkala44\wp-includes\shortcodes.php(325): WeDevs\Dokan\Shortcodes\Dashboard->render_shortcode(”, ”, ‘dokan-dashboard’)
- The topic ‘problem by remove action’ is closed to new replies.