<?php
/**
 * ZERTI WordPress action/filter registration.
 */

if (!defined('ABSPATH')) {
    exit;
}

add_action('admin_enqueue_scripts', 'zerti_enqueue_admin_menu_styles', 1);
add_action('admin_menu', 'zerti_register_admin_menu');
add_action('admin_enqueue_scripts', 'zerti_enqueue_admin_assets');
add_action('admin_enqueue_scripts', 'zerti_maybe_enqueue_product_import_export_assets', 25);
add_action('admin_init', 'zerti_admin_init_strip_notices');

add_action('wp_ajax_zerti_load_component', 'zerti_ajax_load_component');
add_action('wp_ajax_zerti_save_settings', 'zerti_ajax_save_settings');
add_action('wp_ajax_zerti_save_postal_pdf_settings', 'zerti_ajax_save_postal_pdf_settings');
add_action('wp_ajax_zerti_shop_orders_grid', 'zerti_ajax_shop_orders_grid');
add_action('wp_ajax_zerti_shop_processing_orders_count', 'zerti_ajax_shop_processing_orders_count');
add_action('wp_ajax_zerti_product_pending_reviews_count', 'zerti_ajax_product_pending_reviews_count');
add_action('wp_ajax_zerti_product_pending_comments_count', 'zerti_ajax_product_pending_comments_count');
add_action('wp_ajax_zerti_product_pending_feedback_counts', 'zerti_ajax_product_pending_feedback_counts');
add_action('wp_ajax_zerti_home_dashboard_stats', 'zerti_ajax_home_dashboard_stats');
add_action('wp_ajax_zerti_customers_grid', 'zerti_ajax_customers_grid');
add_action('wp_ajax_zerti_payments_grid', 'zerti_ajax_payments_grid');
add_action('wp_ajax_zerti_sales_report_grid', 'zerti_ajax_sales_report_grid');
add_action('wp_ajax_zerti_products_grid', 'zerti_ajax_products_grid');
add_action('wp_ajax_zerti_product_quick_update', 'zerti_ajax_product_quick_update');
add_action('wp_ajax_zerti_product_save', 'zerti_ajax_product_save');
add_action('wp_ajax_zerti_product_edit_attribute_terms', 'zerti_ajax_product_edit_attribute_terms');
add_action('wp_ajax_zerti_product_search', 'zerti_ajax_product_search');
add_action('wp_ajax_zerti_global_search', 'zerti_ajax_global_search');
add_action('wp_ajax_zerti_product_categories_list', 'zerti_ajax_product_categories_list');
add_action('wp_ajax_zerti_product_category_save', 'zerti_ajax_product_category_save');
add_action('wp_ajax_zerti_product_category_delete', 'zerti_ajax_product_category_delete');
add_action('wp_ajax_zerti_product_categories_reorder', 'zerti_ajax_product_categories_reorder');
add_action('wp_ajax_zerti_product_tags_search', 'zerti_ajax_product_tags_search');
add_action('wp_ajax_zerti_product_tags_list', 'zerti_ajax_product_tags_list');
add_action('wp_ajax_zerti_product_tag_save', 'zerti_ajax_product_tag_save');
add_action('wp_ajax_zerti_product_tag_delete', 'zerti_ajax_product_tag_delete');
add_action('wp_ajax_zerti_product_brands_search', 'zerti_ajax_product_brands_search');
add_action('wp_ajax_zerti_product_brands_list', 'zerti_ajax_product_brands_list');
add_action('wp_ajax_zerti_product_brand_save', 'zerti_ajax_product_brand_save');
add_action('wp_ajax_zerti_product_brand_delete', 'zerti_ajax_product_brand_delete');
add_action('wp_ajax_zerti_product_reviews_list', 'zerti_ajax_product_reviews_list');
add_action('wp_ajax_zerti_product_review_save', 'zerti_ajax_product_review_save');
add_action('wp_ajax_zerti_product_review_delete', 'zerti_ajax_product_review_delete');
add_action('wp_ajax_zerti_product_attributes_list', 'zerti_ajax_product_attributes_list');
add_action('wp_ajax_zerti_product_attribute_save', 'zerti_ajax_product_attribute_save');
add_action('wp_ajax_zerti_product_attribute_delete', 'zerti_ajax_product_attribute_delete');
add_action('wp_ajax_zerti_product_attribute_term_save', 'zerti_ajax_product_attribute_term_save');
add_action('wp_ajax_zerti_product_attribute_term_delete', 'zerti_ajax_product_attribute_term_delete');
add_action('wp_ajax_zerti_product_attribute_groups_list', 'zerti_ajax_product_attribute_groups_list');
add_action('wp_ajax_zerti_product_attribute_group_save', 'zerti_ajax_product_attribute_group_save');
add_action('wp_ajax_zerti_product_attribute_group_delete', 'zerti_ajax_product_attribute_group_delete');
add_action('wp_ajax_zerti_wc_coupons_grid', 'zerti_ajax_wc_coupons_grid');
add_action('wp_ajax_zerti_wc_coupon_editor', 'zerti_ajax_wc_coupon_editor');
add_action('wp_ajax_zerti_wc_coupon_save', 'zerti_ajax_wc_coupon_save');
add_action('wp_ajax_zerti_wc_coupon_delete', 'zerti_ajax_wc_coupon_delete');
add_action('wp_ajax_zerti_admin_notes_list', 'zerti_ajax_admin_notes_list');
add_action('wp_ajax_zerti_admin_note_save', 'zerti_ajax_admin_note_save');
add_action('wp_ajax_zerti_admin_note_delete', 'zerti_ajax_admin_note_delete');
