Plugin Directory

Changeset 2109313


Ignore:
Timestamp:
06/20/2019 08:30:28 AM (7 years ago)
Author:
storespot
Message:

v1.1.3

Location:
storespot
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • storespot/tags/1.1.3/includes/class-storespot.php

    r2067784 r2109313  
    4444        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-storespot-loader.php';
    4545        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-messages.php';
    46         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-api.php';
    4746        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-storespot-events.php';
    4847        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-storespot-facebook-pixel.php';
     
    5150            ! class_exists( 'StoreSpot_Loader' ) ||
    5251            ! class_exists( 'StoreSpot_Messages' ) ||
    53             ! class_exists( 'StoreSpot_API' ) ||
    5452            ! class_exists( 'StoreSpot_Events' ) ||
    5553            ! class_exists( 'StoreSpot_Facebook_Pixel' )
     
    8684
    8785    private function define_api_hooks() {
    88         $api = new StoreSpot_API();
    89         $this->loader->add_action( 'rest_api_init', $api, 'storespot_api_route');
     86        add_action( 'rest_api_init', function() {
     87            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-api.php';
     88            if ( class_exists( 'StoreSpot_API' ) ) {
     89                $api = new StoreSpot_API();
     90                $api->storespot_api_route();
     91            }
     92        });
    9093    }
    9194
  • storespot/tags/1.1.3/readme.txt

    r2067784 r2109313  
    55Tested up to: 5.1
    66Requires PHP: 5.6
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949
    5050== Changelog ==
     51= 1.1.3 =
     52* Update: rest api controller
     53
    5154= 1.1.2 =
    5255* Update: cart event values per product
  • storespot/tags/1.1.3/storespot.php

    r2067784 r2109313  
    44 * Plugin URI:   https://storespot.io/
    55 * Description:  Stop leaving money on the table. Automate your retargeting ads with StoreSpot.
    6  * Version:      1.1.2
     6 * Version:      1.1.3
    77 * Author:       StoreSpot
    88**/
     
    1111if ( ! defined( 'WPINC' ) ) { die; }
    1212
    13 define( 'STORESPOT_VERSION', '1.1.2' );
     13define( 'STORESPOT_VERSION', '1.1.3' );
    1414
    1515function activate_storespot() {
  • storespot/trunk/includes/class-storespot.php

    r2067784 r2109313  
    4444        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-storespot-loader.php';
    4545        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-messages.php';
    46         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-api.php';
    4746        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-storespot-events.php';
    4847        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-storespot-facebook-pixel.php';
     
    5150            ! class_exists( 'StoreSpot_Loader' ) ||
    5251            ! class_exists( 'StoreSpot_Messages' ) ||
    53             ! class_exists( 'StoreSpot_API' ) ||
    5452            ! class_exists( 'StoreSpot_Events' ) ||
    5553            ! class_exists( 'StoreSpot_Facebook_Pixel' )
     
    8684
    8785    private function define_api_hooks() {
    88         $api = new StoreSpot_API();
    89         $this->loader->add_action( 'rest_api_init', $api, 'storespot_api_route');
     86        add_action( 'rest_api_init', function() {
     87            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-api.php';
     88            if ( class_exists( 'StoreSpot_API' ) ) {
     89                $api = new StoreSpot_API();
     90                $api->storespot_api_route();
     91            }
     92        });
    9093    }
    9194
  • storespot/trunk/readme.txt

    r2067784 r2109313  
    55Tested up to: 5.1
    66Requires PHP: 5.6
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949
    5050== Changelog ==
     51= 1.1.3 =
     52* Update: rest api controller
     53
    5154= 1.1.2 =
    5255* Update: cart event values per product
  • storespot/trunk/storespot.php

    r2067784 r2109313  
    44 * Plugin URI:   https://storespot.io/
    55 * Description:  Stop leaving money on the table. Automate your retargeting ads with StoreSpot.
    6  * Version:      1.1.2
     6 * Version:      1.1.3
    77 * Author:       StoreSpot
    88**/
     
    1111if ( ! defined( 'WPINC' ) ) { die; }
    1212
    13 define( 'STORESPOT_VERSION', '1.1.2' );
     13define( 'STORESPOT_VERSION', '1.1.3' );
    1414
    1515function activate_storespot() {
Note: See TracChangeset for help on using the changeset viewer.