PAYPAL WORKING

This commit is contained in:
asus
2024-02-24 16:57:31 +01:00
parent 745f5ebf91
commit 61b3f9f2f5
10 changed files with 300 additions and 236 deletions

View File

@@ -56,7 +56,6 @@ class PLGNTLS_class
$vars = array();
if (!is_null($scripts_arr))
{
console_log("in is null scripts_arr");
// add ajax file at beginning of files list
array_unshift($scripts_arr, "utils/plugin_ajax.js");
$nonce = array("ajax_nonce" => wp_create_nonce('wp-pageviews-nonce'));
@@ -74,8 +73,6 @@ class PLGNTLS_class
if (!is_null($scripts_arr))
$this->add_scripts_to_front($scripts);
console_log("vars:");
console_log($vars);
if (!is_null($vars))
$this->add_vars_to_front($vars);
return $this->create_html($scripts, $vars);
@@ -199,7 +196,14 @@ class PLGNTLS_class
$previous_css_basename = $script->handle;
}
}
/*
* uncomment to print all enqueued scripts, can be usefull
*/
global $wp_scripts;
error_log("wp_scripts->queue:");
error_log(json_encode($wp_scripts->queue));
}
private function check_dependencies(&$script, $previous_basename)
{
if (in_array($script->ext, array("js", "url")))