/** * Get the attribute set list when creating a new attribute for direct affectation */ function ajax_attribute_entity_set_selection_callback() { check_ajax_referer('wpshop_attribute_entity_set_selection', 'wpshop_ajax_nonce'); $current_entity_id = isset($_POST['current_entity_id']) ? intval(wpshop_tools::varSanitizer($_POST['current_entity_id'])) : null; $the_input = wpshop_attributes_set::get_attribute_set_complete_list($current_entity_id, wpshop_attributes::getDbTable(), wpshop_attributes::currentPageCode); echo json_encode($the_input); die; }