Forums
Home / Plugin: HRM Work Tracking / Disable widgets filter for specific roles
(@yarink)
10 years, 6 months ago
Hello, Is it possible to disable these widgets for all users? “Human Resources Department” and “clock”. Also, I only need to track time for specific user roles. How can I filter the list of users who are tracked? Thanks!
http://wordpress.org/plugins/hrm-work-tracking/
(@theode)
10 years, 5 months ago
Hello.
number one. go to hrm-work-tracking.php and do this (approx line 62)
//add_action('wp_dashboard_setup', 'add_dashboard_clock' ); //add_action('wp_dashboard_setup', 'add_dashboard_hrd' ); //add_action('wp_dashboard_setup', 'add_hrm_wt' );
number two. I bet there is a possibility with if ( current_user_can( "subscriber" ) )}
if ( current_user_can( "subscriber" ) )}
we can talk about it further
9 years, 10 months ago
was that what you want?