Change WordPress user roles and capabilities › Forums › Give user access to plugin – how to › Restrict Support Staff Access in Tickera Plugin Settings › Reply To: Restrict Support Staff Access in Tickera Plugin Settings
13/11/2019 at 12:44
#6103
Vladimir
Keymaster
Hi,
It’s not possible using user capabilities. But it seems that you can use a filter. Tickera adds “Export PDF” tab using this filter:
add_filter( 'tc_settings_new_menus', array( &$this, 'tc_settings_new_menus_additional' ) );
function tc_settings_new_menus_additional( $settings_tabs ) {
$settings_tabs[ 'tickera_export_mixed_data' ] = __( 'Export PDF', 'tc' );
return $settings_tabs;
}
You can add to this filter with larger priority (99) your own function, which will remove ‘tickera_export_mixed_data’ element from the array with the list of tabs.
Let me know if you need further help.