Changeset 976797
- Timestamp:
- 09/02/2014 02:24:59 AM (12 years ago)
- Location:
- woocommerce-geolocation-based-products/trunk
- Files:
-
- 4 edited
-
includes/class-wc-geolocation-based-products-admin.php (modified) (3 diffs)
-
includes/class-wc-geolocation-based-products-frontend.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
-
woocommerce-geolocation-based-products.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-geolocation-based-products/trunk/includes/class-wc-geolocation-based-products-admin.php
r958980 r976797 5 5 6 6 class WC_Geolocation_Based_Products_Admin { 7 private static $_this; 8 7 9 /** 8 10 * init … … 13 15 */ 14 16 public function __construct() { 17 self::$_this = $this; 18 15 19 add_action( 'admin_menu', array( $this, 'add_admin_menu' ) ); 16 20 … … 20 24 21 25 return true; 26 } 27 28 /** 29 * public access to instance object 30 * 31 * @since 1.1.1 32 * @return bool 33 */ 34 public function get_instance() { 35 return self::$_this; 22 36 } 23 37 -
woocommerce-geolocation-based-products/trunk/includes/class-wc-geolocation-based-products-frontend.php
r958980 r976797 5 5 6 6 class WC_Geolocation_Based_Products_Frontend { 7 private static $_this; 7 8 8 9 var $location_data; … … 17 18 */ 18 19 public function __construct() { 20 self::$_this = $this; 19 21 20 22 add_action( 'pre_get_posts', array( $this, 'filter_query' ) ); … … 30 32 } 31 33 34 /** 35 * public access to instance object 36 * 37 * @since 1.1.1 38 * @return bool 39 */ 40 public function get_instance() { 41 return self::$_this; 42 } 43 32 44 /** 33 45 * gets the user country -
woocommerce-geolocation-based-products/trunk/readme.txt
r974322 r976797 5 5 Tested up to: 3.9.1 6 6 WooCommerce requires at least: 2.1.12 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 21 21 3. Activate the plugin through the 'Plugins' menu in WordPress 22 22 4. Click on settings link to get to the settings page or get to the settings page by clicking on Geolocation link under WooCommerce Products Menu. 23 24 == Usage ==25 23 26 24 You can add many different countries in which you want the settings to apply to. You do this by adding a row and setting the 2 letter country code in which you want to apply to. For example "US". Then you set whether you want to hide certain product categories or just products themselves. You may select more than one for each. … … 44 42 == Changelog == 45 43 44 = 1.1.2 | 9-02-2014 = 45 * Added - Instance variable for instance targetting 46 46 47 = 1.1.1 | 8-27-2014 = 47 48 * Added - missing dependency files to check WC active -
woocommerce-geolocation-based-products/trunk/woocommerce-geolocation-based-products.php
r974318 r976797 4 4 Plugin URI: http://splashingpixels.com/ 5 5 Description: A WooCommerce plugin/extension that adds ability for your store to show/hide products based on visitors geolocation. 6 Version: 1.1.1 7 Author: SplashingPixels / Roy Ho 6 Version: 1.1.2 7 Author: Roy Ho 8 Author URI: http://royho.me 8 9 9 10 Copyright: (c) 2014 Roy Ho … … 26 27 */ 27 28 class WC_Geolocation_Based_Products { 29 private static $_this; 28 30 29 31 /** … … 35 37 */ 36 38 public function __construct() { 37 39 self::$_this = $this; 40 38 41 add_action( 'init', array( $this, 'load_plugin_textdomain' ) ); 39 42 … … 56 59 57 60 return true; 61 } 62 63 /** 64 * public access to instance object 65 * 66 * @since 1.1.1 67 * @return bool 68 */ 69 public function get_instance() { 70 return self::$_this; 58 71 } 59 72
Note: See TracChangeset
for help on using the changeset viewer.