apply_filters( 'toria/ajax/mode', $mode, $action, $php_callback, $script_path );

Filters the visibility of the AJAX endpoint. 



(string) Determines if the script will be exposed to authenticated Ajax actions for logged-in users or non-authenticated Ajax actions for logged-out users or both. Using both, private, and public.


The name of the Ajax action.


PHP function to respond to ajax calls.


The path where the JavaScript file is located.