Awesome Support Developer Documentation

wpas_can_view_ticket


Signature

apply_filters( 'wpas_can_view_ticket', $can, $post_id, $author_id );

Typical Usage

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.

Example Usage

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);

First Available

Version 4.4.0


More Topics In Filter Hooks

Share: