Deleted error logs
This commit is contained in:
@@ -18,7 +18,7 @@ jQuery(document).ready(function ($) {
|
||||
$.post(woocommerce_admin_meta_boxes.ajax_url, data, function (response) {
|
||||
|
||||
if ('' !== response.markup) {
|
||||
|
||||
$container.children("div").remove();
|
||||
$container.append(response.markup);
|
||||
|
||||
} else {
|
||||
|
||||
@@ -16,9 +16,7 @@ class Wiaas_Template_Admin_Ajax {
|
||||
add_action('wp_ajax_wiaas_add_template_product', array(__CLASS__, 'ajax_add_wiaas_template_product'));
|
||||
add_action('wp_ajax_wiaas_template_category_search', array(__CLASS__, 'ajax_wiaas_template_category_search'));
|
||||
|
||||
// Ajax add bundled product.
|
||||
add_action('wp_ajax_wiaas_select_template', array(__CLASS__, 'ajax_handle_template_selection'));
|
||||
|
||||
add_action('wp_ajax_wiaas_product_type_change', array(__CLASS__, 'toggle_template_selection_on_type_change'));
|
||||
}
|
||||
|
||||
@@ -85,10 +83,7 @@ class Wiaas_Template_Admin_Ajax {
|
||||
));
|
||||
|
||||
foreach ($terms as $t) {
|
||||
error_log($t->name);
|
||||
error_log($t->term_id);
|
||||
$response[$t->term_id] = $t->name;
|
||||
|
||||
}
|
||||
|
||||
wp_send_json($response);
|
||||
|
||||
@@ -9,7 +9,6 @@ class Wiaas_Admin {
|
||||
public static function init() {
|
||||
require_once dirname( __FILE__ ) . '/admin/class-wiaas-admin-package.php';
|
||||
require_once dirname( __FILE__ ) . '/admin/class-wiaas-admin-pricing.php';
|
||||
require_once dirname(__FILE__) . '/admin/template/class-wiaas-wc-product-template.php';
|
||||
require_once dirname(__FILE__) . '/admin/template/class-wiaas-admin-template-selection.php';
|
||||
require_once dirname(__FILE__) . '/admin/template/class-wiaas-template-products.php';
|
||||
require_once dirname(__FILE__) . '/admin/template/class-wiaas-template-admin-ajax.php';
|
||||
|
||||
@@ -4,6 +4,7 @@ class Wiaas_Templates {
|
||||
public static function init() {
|
||||
require_once dirname( __FILE__ ) . '/templates/class-wiaas-template-category.php';
|
||||
require_once dirname( __FILE__ ) . '/templates/class-wiaas-template-category-object.php';
|
||||
require_once dirname(__FILE__) . '/templates/class-wiaas-wc-product-template.php';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user