Plugin Directory

Changeset 3269698


Ignore:
Timestamp:
04/09/2025 12:44:52 PM (12 months ago)
Author:
ibsofts
Message:

Updated to version 2.0.8

Location:
ghl-connect
Files:
80 added
15 edited

Legend:

Unmodified
Added
Removed
  • ghl-connect/trunk/README.txt

    r3268297 r3269698  
    55Requires at least: 4.0
    66Tested up to: 6.7
    7 Stable tag: 2.0.7
     7Stable tag: 2.0.8
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    116116
    117117== Changelog ==
     118= 2.0.8 =
     119Bugs Fixes.
     120
    118121= 2.0.7 =
    119122UI enhancements for an improved user experience.
     
    151154
    152155== Upgrade Notice ==
     156= 2.0.8 =
     157Bugs Fixes.
     158
    153159= 2.0.7 =
    154160UI enhancements for an improved user experience.
  • ghl-connect/trunk/admin/class-ghl-connect-admin.php

    r3268297 r3269698  
    55 *
    66 * @link       https://https://www.ibsofts.com
    7  * @since      2.0.7
     7 * @since      2.0.8
    88 *
    99 * @package    GHLCONNECT
     
    2727     * The ID of this plugin.
    2828     *
    29      * @since    2.0.7
     29     * @since    2.0.8
    3030     * @access   private
    3131     * @var      string    $plugin_name    The ID of this plugin.
     
    3636     * The version of this plugin.
    3737     *
    38      * @since    2.0.7
     38     * @since    2.0.8
    3939     * @access   private
    4040     * @var      string    $version    The current version of this plugin.
     
    4545     * Initialize the class and set its properties.
    4646     *
    47      * @since    2.0.7
     47     * @since    2.0.8
    4848     * @param      string    $plugin_name       The name of this plugin.
    4949     * @param      string    $version    The version of this plugin.
     
    5959     * Register the stylesheets for the admin area.
    6060     *
    61      * @since    2.0.7
     61     * @since    2.0.8
    6262     */
    6363    public function enqueue_styles()
     
    8484     * Register the JavaScript for the admin area.
    8585     *
    86      * @since    2.0.7
     86     * @since    2.0.8
    8787     */
    8888    public function enqueue_scripts()
  • ghl-connect/trunk/admin/partials/ghl-connect-admin-display.php

    r3268297 r3269698  
    77 *
    88 * @link       https://https://www.ibsofts.com
    9  * @since      2.0.7
     9 * @since      2.0.8
    1010 *
    1111 * @package    GHLCONNECT
  • ghl-connect/trunk/ghl-connect.php

    r3268297 r3269698  
    1010 *
    1111 * @link              https://www.ibsofts.com
    12  * @since             2.0.7
     12 * @since             2.0.8
    1313 * @package           GHLCONNECT
    1414 *
     
    1717 * Plugin URI:        https://www.ibsofts.com/plugins/ghl-connect
    1818 * Description:       This plugin will connect the popular CRM Go High Level(GHL) to the most popular content management software WordPress.
    19  * Version:           2.0.7
     19 * Version:           2.0.8
    2020 * Author:            iB Softs
    2121 * Author URI:        https://www.ibsofts.com/
     
    3333/**
    3434 * Currently plugin version.
    35  * Start at version 2.0.7 and use SemVer - https://semver.org
     35 * Start at version 2.0.8 and use SemVer - https://semver.org
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('GHLCONNECT_VERSION', '2.0.7');
     38define('GHLCONNECT_VERSION', '2.0.8');
    3939define('GHLCONNECT_PLUGIN_BASENAME', plugin_basename(__FILE__));
    4040define('GHLCONNECT_LOCATION_CONNECTED', false);
     
    9595 * not affect the page life cycle.
    9696 *
    97  * @since    2.0.7
     97 * @since    2.0.8
    9898 */
    9999if (! function_exists('ghlconnect_run')) {
  • ghl-connect/trunk/ghl_api/ghl-get-token.php

    r3203187 r3269698  
    11<?php
    22if ( ! defined( 'ABSPATH' ) ) exit;
    3 add_action('init', function() {
    4 
    5     if ( isset( $_GET['code'] ) ) {
    6         $code = sanitize_text_field( $_GET['code'] );
    7         $ghlconnect_client_id           = get_option( 'ghlconnect_client_id' );
    8         $ghlconnect_client_secret       = get_option( 'ghlconnect_client_secret' );
    9        
    10         $result = ghlconnect_get_first_auth_code($code, $ghlconnect_client_id, $ghlconnect_client_secret);
    11        
    12         $ghlconnect_access_token = $result->access_token;
    13         $ghlconnect_refresh_token = $result->refresh_token;
    14         $ghlconnect_locationId = $result->locationId;
    15         // Save data
    16         update_option( 'ghlconnect_access_token', $ghlconnect_access_token );
    17         update_option( 'ghlconnect_refresh_token', $ghlconnect_refresh_token );
    18         update_option( 'ghlconnect_locationId', $ghlconnect_locationId );
    19         update_option( 'ghlconnect_location_connected', 1 );
    20 
    21         // delete old transient (if exists any)
    22         delete_transient('ghlconnect_location_tags');
    23         delete_transient('ghlconnect_location_workflow');
    24 
    25         wp_redirect('admin.php?page=ib-ghlconnect&tab=cwghl');
    26         exit();
    27     }
    28 });
    293
    304add_action('init', function() {
     
    8357    return null;
    8458}
    85 
    86 function ghlconnect_get_first_auth_code($code, $client_id, $client_secret){
    87 
    88     $endpoint = GHLCONNECT_GET_TOKEN_API;
    89     $body = array(
    90         'client_id'     => $client_id,
    91         'client_secret' => $client_secret,
    92         'grant_type'    => 'authorization_code',
    93         'code'          => $code
    94     );
    95 
    96     $request_args = array(
    97         'body'      => $body,
    98         'headers'   => array(
    99             'Content-Type' => 'application/x-www-form-urlencoded',
    100         ),
    101     );
    102 
    103     $response = wp_remote_post( $endpoint, $request_args );
    104     $http_code = wp_remote_retrieve_response_code( $response );
    105 
    106     if ( 200 === $http_code ) {
    107 
    108         $body = json_decode( wp_remote_retrieve_body( $response ) );
    109         return $body;
    110     }   
    111 }
  • ghl-connect/trunk/includes/class-ghl-connect-activator.php

    r3268297 r3269698  
    55 *
    66 * @link       https://https://www.ibsofts.com
    7  * @since      2.0.7
     7 * @since      2.0.8
    88 *
    99 * @package    GHLCONNECT
     
    1616 * This class defines all code necessary to run during the plugin's activation.
    1717 *
    18  * @since      2.0.7
     18 * @since      2.0.8
    1919 * @package    GHLCONNECT
    2020 * @subpackage GHLCONNECT/includes
     
    2929     * Long Description.
    3030     *
    31      * @since    2.0.7
     31     * @since    2.0.8
    3232     */
    3333    public static function activate() {}
  • ghl-connect/trunk/includes/class-ghl-connect-deactivator.php

    r3268297 r3269698  
    55 *
    66 * @link       https://https://www.ibsofts.com
    7  * @since      2.0.7
     7 * @since      2.0.8
    88 *
    99 * @package    GHLCONNECT
     
    1616 * This class defines all code necessary to run during the plugin's deactivation.
    1717 *
    18  * @since      2.0.7
     18 * @since      2.0.8
    1919 * @package    GHLCONNECT
    2020 * @subpackage GHLCONNECT/includes
     
    2929     * Long Description.
    3030     *
    31      * @since    2.0.7
     31     * @since    2.0.8
    3232     */
    3333    public static function deactivate() {}
  • ghl-connect/trunk/includes/class-ghl-connect-i18n.php

    r3268297 r3269698  
    88 *
    99 * @link       https://https://www.ibsofts.com
    10  * @since      2.0.7
     10 * @since      2.0.8
    1111 *
    1212 * @package    GHLCONNECT
     
    2020 * so that it is ready for translation.
    2121 *
    22  * @since      2.0.7
     22 * @since      2.0.8
    2323 * @package    GHLCONNECT
    2424 * @subpackage GHLCONNECT/includes
     
    3232     * Load the plugin text domain for translation.
    3333     *
    34      * @since    2.0.7
     34     * @since    2.0.8
    3535     */
    3636    public function load_plugin_textdomain()
  • ghl-connect/trunk/includes/class-ghl-connect-loader.php

    r3268297 r3269698  
    55 *
    66 * @link       https://https://www.ibsofts.com
    7  * @since      2.0.7
     7 * @since      2.0.8
    88 *
    99 * @package    GHLCONNECT
     
    2828     * The array of actions registered with WordPress.
    2929     *
    30      * @since    2.0.7
     30     * @since    2.0.8
    3131     * @access   protected
    3232     * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
     
    3737     * The array of filters registered with WordPress.
    3838     *
    39      * @since    2.0.7
     39     * @since    2.0.8
    4040     * @access   protected
    4141     * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
     
    4646     * Initialize the collections used to maintain the actions and filters.
    4747     *
    48      * @since    2.0.7
     48     * @since    2.0.8
    4949     */
    5050    public function __construct()
     
    5858     * Add a new action to the collection to be registered with WordPress.
    5959     *
    60      * @since    2.0.7
     60     * @since    2.0.8
    6161     * @param    string               $hook             The name of the WordPress action that is being registered.
    6262     * @param    object               $component        A reference to the instance of the object on which the action is defined.
     
    7373     * Add a new filter to the collection to be registered with WordPress.
    7474     *
    75      * @since    2.0.7
     75     * @since    2.0.8
    7676     * @param    string               $hook             The name of the WordPress filter that is being registered.
    7777     * @param    object               $component        A reference to the instance of the object on which the filter is defined.
     
    8989     * collection.
    9090     *
    91      * @since    2.0.7
     91     * @since    2.0.8
    9292     * @access   private
    9393     * @param    array                $hooks            The collection of hooks that is being registered (that is, actions or filters).
     
    116116     * Register the filters and actions with WordPress.
    117117     *
    118      * @since    2.0.7
     118     * @since    2.0.8
    119119     */
    120120    public function run()
  • ghl-connect/trunk/includes/class-ghl-connect.php

    r3268297 r3269698  
    88 *
    99 * @link       https://https://www.ibsofts.com
    10  * @since      2.0.7
     10 * @since      2.0.8
    1111 *
    1212 * @package    GHLCONNECT
     
    2323 * version of the plugin.
    2424 *
    25  * @since      2.0.7
     25 * @since      2.0.8
    2626 * @package    GHLCONNECT
    2727 * @subpackage GHLCONNECT/includes
     
    3535     * the plugin.
    3636     *
    37      * @since    2.0.7
     37     * @since    2.0.8
    3838     * @access   protected
    3939     * @var      GHLCONNECT_Loader    $loader    Maintains and registers all hooks for the plugin.
     
    4444     * The unique identifier of this plugin.
    4545     *
    46      * @since    2.0.7
     46     * @since    2.0.8
    4747     * @access   protected
    4848     * @var      string    $plugin_name    The string used to uniquely identify this plugin.
     
    5353     * The current version of the plugin.
    5454     *
    55      * @since    2.0.7
     55     * @since    2.0.8
    5656     * @access   protected
    5757     * @var      string    $version    The current version of the plugin.
     
    6666     * the public-facing side of the site.
    6767     *
    68      * @since    2.0.7
     68     * @since    2.0.8
    6969     */
    7070    public function __construct()
     
    7373            $this->version = GHLCONNECT_VERSION;
    7474        } else {
    75             $this->version = '2.0.7';
     75            $this->version = '2.0.8';
    7676        }
    7777        $this->plugin_name = 'ghl-connect';
     
    9696     * with WordPress.
    9797     *
    98      * @since    2.0.7
     98     * @since    2.0.8
    9999     * @access   private
    100100     */
     
    140140     * with WordPress.
    141141     *
    142      * @since    2.0.7
     142     * @since    2.0.8
    143143     * @access   private
    144144     */
     
    155155     * of the plugin.
    156156     *
    157      * @since    2.0.7
     157     * @since    2.0.8
    158158     * @access   private
    159159     */
     
    173173     * of the plugin.
    174174     *
    175      * @since    2.0.7
     175     * @since    2.0.8
    176176     * @access   private
    177177     */
     
    188188     * Run the loader to execute all of the hooks with WordPress.
    189189     *
    190      * @since    2.0.7
     190     * @since    2.0.8
    191191     */
    192192    public function run()
     
    199199     * WordPress and to define internationalization functionality.
    200200     *
    201      * @since     2.0.7
     201     * @since     2.0.8
    202202     * @return    string    The name of the plugin.
    203203     */
     
    210210     * The reference to the class that orchestrates the hooks with the plugin.
    211211     *
    212      * @since     2.0.7
     212     * @since     2.0.8
    213213     * @return    GHLCONNECT_Loader    Orchestrates the hooks of the plugin.
    214214     */
     
    221221     * Retrieve the version number of the plugin.
    222222     *
    223      * @since     2.0.7
     223     * @since     2.0.8
    224224     * @return    string    The version number of the plugin.
    225225     */
  • ghl-connect/trunk/includes/helpers.php

    r3268297 r3269698  
    11<?php
    2 // includes/helpers.php
     2// includes helpers function
    33
    44function send_plugin_data($plugin_slug, $endpoint, $user_email = null)
  • ghl-connect/trunk/includes/settings-form.php

    r3203187 r3269698  
    3434    $connect_url = GHLCONNECT_AUTH_URL . "?get_code=1&redirect_page={$redirect_page}";
    3535
    36     // if ( ! empty( $ghlconnect_client_id ) && ! str_contains( $ghlconnect_client_id, 'lq4sb5tt' ) ) {
    37        
    38     //  $connect_url = $auth_end_point . "?response_type=code&redirect_uri={$redirect_uri}&client_id={$ghlconnect_client_id}&scope={$scopes}";
    39     // }
    4036   
    4137?>
  • ghl-connect/trunk/public/class-ghl-connect-public.php

    r3268297 r3269698  
    55 *
    66 * @link       https://https://www.ibsofts.com
    7  * @since      2.0.7
     7 * @since      2.0.8
    88 *
    99 * @package    GHLCONNECT
     
    2626    /**
    2727     * The ID of this plugin.
    28      *2.0.7
    29      * @since    2.0.7
     28     *2.0.8
     29     * @since    2.0.8
    3030     * @access   private
    3131     * @var      string    $plugin_name    The ID of this plugin.
     
    3535    /**
    3636     * The version of this plugin.
    37      *2.0.7
    38      * @since    2.0.7
     37     *2.0.8
     38     * @since    2.0.8
    3939     * @access   private
    4040     * @var      string    $version    The current version of this plugin.
     
    4444    /**
    4545     * Initialize the class and set its properties.
    46      *2.0.7
    47      * @since    2.0.7
     46     *2.0.8
     47     * @since    2.0.8
    4848     * @param      string    $plugin_name       The name of the plugin.
    4949     * @param      string    $version    The version of this plugin.
     
    5858    /**
    5959     * Register the stylesheets for the public-facing side of the site.
    60      *2.0.7
    61      * @since    2.0.7
     60     *2.0.8
     61     * @since    2.0.8
    6262     */
    6363    public function enqueue_styles()
     
    8282     * Register the JavaScript for the public-facing side of the site.
    8383     *
    84      * @since    2.0.7
     84     * @since    2.0.8
    8585     */
    8686    public function enqueue_scripts()
  • ghl-connect/trunk/public/partials/ghl-connect-public-display.php

    r3268297 r3269698  
    77 *
    88 * @link       https://https://www.ibsofts.com
    9  * @since      2.0.7
     9 * @since      2.0.8
    1010 *
    1111 * @package    GHLCONNECT
  • ghl-connect/trunk/uninstall.php

    r3268297 r3269698  
    2121 *
    2222 * @link      https://www.ibsofts.com
    23  * @since      2.0.7
     23 * @since      2.0.8
    2424 *
    2525 * @package    GHLCONNECT
Note: See TracChangeset for help on using the changeset viewer.