apply_filters( 'wpas_can_view_ticket', $can, $post_id, $author_id );
This filter can be used to control whether the current ticket being accessed can be viewed by the current user (front-end user or back-end agent). The return value is a BOOLEAN.
function wpas_my_ticket_view_control( $can ) { // force all tickets to be viewable by all users return true; } add_filter('wpas_can_view_ticket', 'wpas_my_ticket_view_control', 10, 1);
Version 4.4.0