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.

Parameters

$script_in_footer

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

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

$script_depends

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

$script_version

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.