Plugin Directory

Changeset 2959324


Ignore:
Timestamp:
08/28/2023 12:31:39 PM (3 years ago)
Author:
quentn
Message:

Reduce number of API calls

Location:
quentn-wp/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • quentn-wp/trunk/admin/partials/quentn-wp-dashboard.php

    r2398796 r2959324  
    5555        } elseif ( $active_tab == "quentn_web_tracking_tab" ) { //display web tracking options
    5656            $web_tracking = new Quentn_Wp_Web_Tracking();
     57            $web_tracking->register_web_tracking_fields();
    5758            echo '<form method="post" action="options.php">';
    5859            if( get_option('quentn_web_tracking_enabled') ) {
  • quentn-wp/trunk/admin/utility/class-helper.php

    r2371136 r2959324  
    209209        return new \DateTimeZone( $tzstring );
    210210    }
     211
     212    /**
     213     * Log error messages
     214     *
     215     * @return bool
     216     */
     217    public static function quentn_log_me($message) {
     218        if ( WP_DEBUG === true ) {
     219            if ( is_array($message) || is_object($message) ) {
     220                error_log( print_r($message, true) );
     221            } else {
     222                error_log( $message );
     223            }
     224        }
     225    }
    211226}
  • quentn-wp/trunk/includes/class-quentn-wp-web-tracking.php

    r2640611 r2959324  
    5555        );
    5656
     57        // register setting
     58        foreach ( $settings as $setting ) {
     59            register_setting( $setting["option_group"], $setting["option_name"], ( isset( $setting["callback"] ) ? $setting["callback"] : '' ) );
     60        }
     61
     62        // add settings section
     63        add_settings_section( $section["id"], $section["title"], ( isset( $section["callback"] ) ? $section["callback"] : '' ), $section["page"] );
     64
     65    }
     66
     67    /**
     68     * Register fields
     69     *
     70     * @access public
     71     * @return void
     72     */
     73    public function register_web_tracking_fields() {
    5774        $fields = array();
    5875        $fields[] = array(
     
    7390            );
    7491        }
    75         // register setting
    76         foreach ( $settings as $setting ) {
    77             register_setting( $setting["option_group"], $setting["option_name"], ( isset( $setting["callback"] ) ? $setting["callback"] : '' ) );
    78         }
    79 
    80         // add settings section
    81         add_settings_section( $section["id"], $section["title"], ( isset( $section["callback"] ) ? $section["callback"] : '' ), $section["page"] );
    8292
    8393        // add settings field
  • quentn-wp/trunk/includes/class-quentn-wp.php

    r2870125 r2959324  
    7575            $this->version = QUENTN_WP_VERSION;
    7676        } else {
    77             $this->version = '1.2.6';
     77            $this->version = '1.2.7';
    7878        }
    7979        $this->plugin_name = 'quentn-wp';
  • quentn-wp/trunk/quentn-wp.php

    r2870125 r2959324  
    1717 * Plugin URI:        https://docs.quentn.com/de/beta-quentn-wordpress-plugin/installieren-und-verbinden
    1818 * Description:       This plugin allows you to restrict access to specific pages, create custom access links and create dynamic page countdowns. Optionally, you can connect your Quentn account to your WordPress installation to share contacts and manage access restrictions through Quentn.
    19  * Version:           1.2.6
     19 * Version:           1.2.7
    2020 * Author:            Quentn.com GmbH
    2121 * Author URI:        https://quentn.com/
     
    3737define( "TABLE_QUENTN_RESTRICTIONS", 'qntn_restrictions' );
    3838define( "TABLE_QUENTN_USER_DATA", 'qntn_user_data' );
    39 define( 'QUENTN_WP_VERSION', '1.2.6' );
     39define( 'QUENTN_WP_VERSION', '1.2.7' );
    4040
    4141/**
  • quentn-wp/trunk/readme.txt

    r2870125 r2959324  
    33Tags: Quentn, countdown, page restriction, email, elementor integration, email marketing tool, integration, email automation, marketing automation
    44Requires at least: 4.6.0
    5 Tested up to: 6.1.1
    6 Stable tag: 1.2.6
     5Tested up to: 6.3
     6Stable tag: 1.2.7
    77Requires PHP: 5.6.0
    88License: GPLv2 or later
     
    6666
    6767== Changelog ==
     68= 1.2.7 =
     69* Fix: Reduce number of API calls.
     70
    6871= 1.2.6 =
    6972* Fix: Guzzle files were not autoloaded due to duplicated hash value.
     
    156159== Upgrade Notice ==
    157160
     161= 1.2.7 =
     162Thanks for using Quentn Plugin! Please update the plugin. It reduced the number of API calls and tested with new wordpress ( 6.3 )
     163
    158164= 1.2.6 =
    159165Thanks for using Quentn Plugin! Please update the plugin to fix error when sometimes Guzzle files were not autoloaded.
Note: See TracChangeset for help on using the changeset viewer.