__('Billing', 'akz-checkout-fields-manager-for-woocommerce'), 'shipping' => __('Shipping', 'akz-checkout-fields-manager-for-woocommerce'), 'order' => __('Order Notes', 'akz-checkout-fields-manager-for-woocommerce'), ); // Get field types $field_types = array(); if (class_exists('CFEP_Field_Types')) { $field_types = CFEP_Field_Types::get_field_types(); } // Localize script with data for React wp_localize_script('cfep-admin', 'cfepAdmin', array( 'ajaxUrl' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('cfep_admin'), 'restUrl' => rest_url('cfep/v1/'), 'restNonce' => wp_create_nonce('wp_rest'), 'sections' => $sections, 'fieldTypes' => $field_types, 'pluginUrl' => CFEP_PLUGIN_URL, 'debug' => array( 'timestamp' => time(), 'version' => CFEP_VERSION, 'sectionsCount' => count($sections), ), )); } }