Version Description
- Fix: Google code snippet
Download this release
Release Info
Developer | quadlayers |
Plugin | Perfect Brands for WooCommerce |
Version | 1.9.8 |
Comparing to | |
See all releases |
Code changes from version 1.9.7 to 1.9.8
classes/class-perfect-woocommerce-brands.php
CHANGED
@@ -235,11 +235,14 @@ class Perfect_Woocommerce_Brands
|
|
235 |
|
236 |
public function product_microdata($markup, $product)
|
237 |
{
|
238 |
-
|
239 |
$new_markup = array();
|
240 |
$brands = wp_get_post_terms($product->get_id(), 'pwb-brand');
|
241 |
foreach ($brands as $brand) {
|
242 |
-
$new_markup['brand'][] =
|
|
|
|
|
|
|
|
|
243 |
}
|
244 |
|
245 |
return array_merge($markup, $new_markup);
|
235 |
|
236 |
public function product_microdata($markup, $product)
|
237 |
{
|
|
|
238 |
$new_markup = array();
|
239 |
$brands = wp_get_post_terms($product->get_id(), 'pwb-brand');
|
240 |
foreach ($brands as $brand) {
|
241 |
+
$new_markup['brand'][] = [
|
242 |
+
'@type' => 'Brand',
|
243 |
+
'name' => $brand->name
|
244 |
+
];
|
245 |
+
// $new_markup['brand'][] = $brand->name;
|
246 |
}
|
247 |
|
248 |
return array_merge($markup, $new_markup);
|
perfect-woocommerce-brands.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Perfect Brands for WooCommerce
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/perfect-woocommerce-brands/
|
6 |
* Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
|
7 |
-
* Version: 1.9.
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* Text Domain: perfect-woocommerce-brands
|
@@ -24,7 +24,7 @@
|
|
24 |
* along with Perfect WooCommerce Brands. If not, see <http://www.gnu.org/licenses/>.
|
25 |
*
|
26 |
* WC requires at least: 3.1.0
|
27 |
-
* WC tested up to: 5.
|
28 |
*/
|
29 |
|
30 |
namespace Perfect_Woocommerce_Brands;
|
@@ -36,7 +36,7 @@ define('PWB_PLUGIN_FILE', __FILE__);
|
|
36 |
define('PWB_PLUGIN_URL', plugins_url('', __FILE__));
|
37 |
define('PWB_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR);
|
38 |
define('PWB_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
39 |
-
define('PWB_PLUGIN_VERSION', '1.9.
|
40 |
define('PWB_PLUGIN_NAME', 'Perfect WooCommerce Brands');
|
41 |
define('PWB_PREFIX', 'pwb');
|
42 |
define('PWB_REVIEW_URL', 'https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?filter=5#new-post');
|
4 |
* Plugin Name: Perfect Brands for WooCommerce
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/perfect-woocommerce-brands/
|
6 |
* Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
|
7 |
+
* Version: 1.9.8
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* Text Domain: perfect-woocommerce-brands
|
24 |
* along with Perfect WooCommerce Brands. If not, see <http://www.gnu.org/licenses/>.
|
25 |
*
|
26 |
* WC requires at least: 3.1.0
|
27 |
+
* WC tested up to: 5.7
|
28 |
*/
|
29 |
|
30 |
namespace Perfect_Woocommerce_Brands;
|
36 |
define('PWB_PLUGIN_URL', plugins_url('', __FILE__));
|
37 |
define('PWB_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR);
|
38 |
define('PWB_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
39 |
+
define('PWB_PLUGIN_VERSION', '1.9.8');
|
40 |
define('PWB_PLUGIN_NAME', 'Perfect WooCommerce Brands');
|
41 |
define('PWB_PREFIX', 'pwb');
|
42 |
define('PWB_REVIEW_URL', 'https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?filter=5#new-post');
|
readme.txt
CHANGED
@@ -5,9 +5,9 @@ Tags: woocommerce, woocommerce brands, woocommerce product, woocommerce manufact
|
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.9.
|
9 |
WC requires at least: 3.0
|
10 |
-
WC tested up to: 5.
|
11 |
License: GPLv3
|
12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
@@ -90,6 +90,8 @@ You can also contribute [translating the plugin](https://translate.wordpress.org
|
|
90 |
|
91 |
|
92 |
== Changelog ==
|
|
|
|
|
93 |
= 1.9.7 =
|
94 |
* Fix: QuadLayers widget cache
|
95 |
= 1.9.6 =
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.9.8
|
9 |
WC requires at least: 3.0
|
10 |
+
WC tested up to: 5.7
|
11 |
License: GPLv3
|
12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
90 |
|
91 |
|
92 |
== Changelog ==
|
93 |
+
= 1.9.8 =
|
94 |
+
* Fix: Google code snippet
|
95 |
= 1.9.7 =
|
96 |
* Fix: QuadLayers widget cache
|
97 |
= 1.9.6 =
|