Plugin Directory

Changeset 3376954


Ignore:
Timestamp:
10/12/2025 01:21:06 PM (5 months ago)
Author:
UkrSolution
Message:

2.0.4

Location:
upc-ean-barcode-generator/trunk
Files:
2 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • upc-ean-barcode-generator/trunk/index.php

    r3341470 r3376954  
    44 * Description: Allows to generate EAN & UPC codes for your WooCommerce plugins.
    55 * Text Domain: upc-ean-generator
    6  * Version: 2.0.3
     6 * Version: 2.0.4
    77 * Author: UkrSolution
    88 * Plugin URI: https://www.ukrsolution.com
     
    4040add_action('plugins_loaded', function () {
    4141    $lastVersion = get_option("active-{%plugin%}-barcodes-version", "");
    42     if ($lastVersion !== "2.0.3") {
     42    if ($lastVersion !== "2.0.4") {
    4343        UkrSolution\UpcEanGenerator\Database::createTables();
    44         update_option("active-{%plugin%}-barcodes-version", "2.0.3");
     44        update_option("active-{%plugin%}-barcodes-version", "2.0.4");
    4545    }
    4646});
  • upc-ean-barcode-generator/trunk/src/features/Integrations/CodeStoreField.php

    r3341206 r3376954  
    2828        }
    2929
    30         $this->optionName = __(static::OPTION_NAME, 'upc-ean-generator');
     30
     31                add_action('init', function() {
     32            $this->optionName = __(static::OPTION_NAME, 'upc-ean-generator');
     33        });
    3134
    3235        add_filter('uegen_code_store_field_options', function ($codeStoreFieldOptions) {
  • upc-ean-barcode-generator/trunk/src/features/products/Products.php

    r3341206 r3376954  
    1717    public $fieldName = "";
    1818    protected $upcEanFieldName = "usbs_barcode_field";
    19     protected $fieldLabel = "";
     19    protected $fieldLabel = "Barcode";
    2020    protected $postTypes = array('product', 'product_variation');
    2121    protected $postStatuses = array('publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', 'trash');
     
    3636        $this->codeStoreFieldOption = $this->settings->getField("general", "code-store-field", $this->upcEanFieldName);
    3737        $this->fieldName = $this->upcEanFieldName;
    38         $this->fieldLabel = __("Barcode", 'upc-ean-generator');
     38
     39
     40        add_action('init', function() {
     41            $this->fieldLabel = __("Barcode", 'upc-ean-generator');
     42        });
     43
    3944        $this->newProductsCodeSource = $this->settings->getField("general", "new-products-code-source", self::DATA_GENERATE);
    4045
Note: See TracChangeset for help on using the changeset viewer.