Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wcfm filter vendor dashboard widgets

add_filter( 'before_wcmp_dashboard_widget', 'filter_before_wcmp_dashboard_widget', 10, 1 );
function filter_before_wcmp_dashboard_widget( $vendor_dashboard_widget ) {
	unset($vendor_dashboard_widget['full']['wcmp_vendor_stats_reports']); //remove Vendor Stats and Reports widget
	unset($vendor_dashboard_widget['side']['wcmp_vendor_transaction_details']); //remove Transaction Details widget
	unset($vendor_dashboard_widget['side']['wcmp_vendor_product_stats']);  //remove Product Stats widget
	unset($vendor_dashboard_widget['side']['wcmp_vendor_products_cust_qna']);  //remove Customer Questions widget
	unset($vendor_dashboard_widget['normal']['wcmp_vendor_visitors_map']);  //remove Visitors Map widget
	unset($vendor_dashboard_widget['normal']['wcmp_vendor_pending_shipping']);  //remove Pending Shipping widget
	unset($vendor_dashboard_widget['normal']['wcmp_vendor_product_sales_report']);  //remove Product Sales Report widget
	unset($vendor_dashboard_widget['normal']['wcmp_customer_reviews']);  //remove Customer Reviews widget
	return $vendor_dashboard_widget;
}
Comment

PREVIOUS NEXT
Code Example
Php :: how to get name through id from mysql using php 
Php :: remove database in codeigniter 
Php :: connecting to database and performing sql queries 
Php :: phpstorm entity identification 
Php :: Who is known as the father of PHP? 
Php :: $order- date 
Php :: laravel validate form data unique array 
Php :: get.krnl.key 
Php :: array issue in php 
Php :: bitnami wp user pass change 
Php :: php upload image to another subdomain 
Php :: how to depreciate a class in php comments 
Php :: wp_handle_upload return uploaded file name 
Php :: convert php array into json online 
Php :: import csv in laravel 8 
Php :: Removing the additional information tab using PHP code snippet 
Php :: Verifying session info 
Php :: condition for both of one should be true laravel eloquent 
Php :: woocommerce subscriptions custom user rolde 
Php :: strrev 
Php :: yii2 active form date input 
Php :: laravel , How can I increment and decrement value with unique id 
Php :: how to create pdf with doompdf in php 
Php :: php receive get 
Php :: error correction in qr code php 
Php :: php to python converter online free 
Php :: mamp change php version 
Php :: magento 2.4.3 how to log 
Php :: function id codeigniter 3 
Php :: create procedure with pdo php 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =