Filters the array of the registered script handles the Ajax JavaScript depends on.
Parameters
$script_depends
(string[]) (Optional) An array of registered scripts handles this script depends on.
$action
The name of the Ajax action.
$php_callback
PHP function to respond to ajax calls.
$script_path
The path where the JavaScript file is located.
$mode
(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.
$nonce
(string) Used to create WP nonce for verification on PHP callback.
$ajax_object
(string) Name of object to be storing JS variables.
$ajax_handle
Name of script.
Get Tori Ajax Pro with User Interface(UI) here 👉