function toria_add_ajax(
$action,
$php_callback,
$script_path,
$mode = 'private',
$ajax_variables = array(),
$nonce = 'my_custom_value_submission_test',
$ajax_object = 'toria',
$ajax_handle = '',
$script_depends = array(),
$script_version = false,
$script_in_footer = true
)
Name of script.
(bool) (Optional) Whether to enqueue the script before <body> instead of in the <head>. Default ‘false’.