apply_filters( 'toria/ajax/script_in_footer', $script_in_footer, $action, $php_callback, $script_path, $mode, $nonce, $ajax_object, $ajax_handle, $script_depends, $script_version )

Filters the $script_in_footer. That is, whether to enqueue script in the <head> or not.



(bool)  Whether to enqueue the script beforeinstead of in the


The name of the Ajax action.


PHP function to respond to ajax calls.


The path where the JavaScript file is located.


(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.


(string) Used to create WP nonce for verification on PHP callback.


(string) Name of object to be storing JS variables.


Name of script.


(string[]) An array of registered scripts handles this script depends on.


A string specifying script version number, if it has one, which is added to the URL as a query string for cache busting purposes. If the version is set to false, a version number is automatically added equal to the current installed Tori Ajax version. If set to null, no version is added.