/** * Constructor. Grab the settings, and add filters if we have stuff to do * * @access public */ function __construct() { parent::__construct(); $this->store_info->feed_url = add_query_arg('feed_format', 'bing', $this->store_info->feed_url_base); // Bing doesn't like forreign chars $this->old_locale = get_locale(); }
/** * Constructor. Grab the settings, and add filters if we have stuff to do * * @access public */ function __construct() { parent::__construct(); $this->store_info->feed_url = add_query_arg('feed_format', 'googleinventory', $this->store_info->feed_url_base); if (!empty($this->store_info->base_country) && substr('US' == $this->store_info->base_country, 0, 2)) { $this->US_feed = true; } else { $this->US_feed = false; } }
/** * Constructor. Grab the settings, and add filters if we have stuff to do * * @access public */ function __construct() { parent::__construct(); $this->store_info->feed_url = add_query_arg('feed_format', 'google', $this->store_info->feed_url_base); if (!empty($this->store_info->base_country) && substr('US' == $this->store_info->base_country, 0, 2)) { $this->US_feed = true; } else { $this->US_feed = false; } add_filter('woocommerce_gpf_feed_item_google', array($this, 'enforce_max_lengths')); }