Plugin Directory

Changeset 3345824


Ignore:
Timestamp:
08/17/2025 09:38:44 AM (8 months ago)
Author:
wpsaad
Message:

freemius key update

Location:
product-add-ons-custom-fields-booking-extra-options-for-woocommerce
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • product-add-ons-custom-fields-booking-extra-options-for-woocommerce/tags/1.0.0/product-addons-custom-fields-booking-for-woocommerce.php

    r3329025 r3345824  
    657657         * @return void
    658658         */
    659         public function paocfbfw_load_plugin()
    660         {
    661            
    662             require_once plugin_dir_path(__FILE__) . 'includes/paocfbfw_functions.php';
     659        public function paocfbfw_load_plugin() {
     660            require_once plugin_dir_path( __FILE__ ) . 'includes/paocfbfw_functions.php';
    663661            //load cmb2 libraries only if not already loaded through another plugin
    664                         if ( ! defined( 'CMB2_LOADED' ) ) {
    665     define( 'CMB2_LOADED', true );
    666                 if ( ! class_exists( 'CMB2' ) && ! class_exists( 'CMB2_Tabs' ) ) {
    667                 require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
    668             }
    669 
     662            if ( !defined( 'CMB2_LOADED' ) ) {
     663                define( 'CMB2_LOADED', true );
     664                if ( !class_exists( 'CMB2' ) && !class_exists( 'CMB2_Tabs' ) ) {
     665                    require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
     666                }
    670667            }
    671668        }
  • product-add-ons-custom-fields-booking-extra-options-for-woocommerce/trunk/product-addons-custom-fields-booking-for-woocommerce.php

    r3329025 r3345824  
    657657         * @return void
    658658         */
    659         public function paocfbfw_load_plugin()
    660         {
    661            
    662             require_once plugin_dir_path(__FILE__) . 'includes/paocfbfw_functions.php';
     659        public function paocfbfw_load_plugin() {
     660            require_once plugin_dir_path( __FILE__ ) . 'includes/paocfbfw_functions.php';
    663661            //load cmb2 libraries only if not already loaded through another plugin
    664                         if ( ! defined( 'CMB2_LOADED' ) ) {
    665     define( 'CMB2_LOADED', true );
    666                 if ( ! class_exists( 'CMB2' ) && ! class_exists( 'CMB2_Tabs' ) ) {
    667                 require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
    668             }
    669 
     662            if ( !defined( 'CMB2_LOADED' ) ) {
     663                define( 'CMB2_LOADED', true );
     664                if ( !class_exists( 'CMB2' ) && !class_exists( 'CMB2_Tabs' ) ) {
     665                    require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
     666                }
    670667            }
    671668        }
Note: See TracChangeset for help on using the changeset viewer.