{"id":3607,"date":"2015-03-16T22:58:13","date_gmt":"2015-03-16T22:58:13","guid":{"rendered":"http:\/\/fluffytech.co.uk\/fluff\/?p=3607"},"modified":"2018-09-21T16:39:26","modified_gmt":"2018-09-21T15:39:26","slug":"black-bough-hacks","status":"publish","type":"post","link":"https:\/\/www.fluffytech.co.uk\/fluff\/black-bough-hacks\/","title":{"rendered":"WooCommerce Brands Hack"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3616\" src=\"https:\/\/www.fluffytech.co.uk\/fluff\/wp-content\/uploads\/Logo-collage.jpg\" alt=\"Logo-collage\" width=\"710\" height=\"542\" title=\"\" srcset=\"https:\/\/www.fluffytech.co.uk\/fluff\/wp-content\/uploads\/Logo-collage.jpg 710w, https:\/\/www.fluffytech.co.uk\/fluff\/wp-content\/uploads\/Logo-collage-320x244.jpg 320w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>REMOVE (s) and fullstop from <a href=\"http:\/\/www.woothemes.com\/products\/brands\/\" target=\"_blank\" rel=\"nofollow noopener\">WooCommerce brands<\/a><\/h2>\n<p>Change the &#8220;\/wp-content\/plugins\/woocommerce-brands\/classes\/class-wc-brands.php&#8221; file on line 74 from:<\/p>\n<pre class=\"\">'name' \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0=&gt; __( 'Brands', 'wc_brands' ),<\/pre>\n<p>To:<\/p>\n<pre class=\"\">'name' \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0=&gt; __( 'Brand', 'wc_brands' ),<\/pre>\n<p>Change the &#8220;\/wp-content\/plugins\/woocommerce-brands\/classes\/class-wc-brands.php&#8221; file on line 199 from:<\/p>\n<pre class=\"\">echo get_brands( $post-&gt;ID, ', ', ' &lt;span class=\"posted_in\"&gt;' . $labels-&gt;name . ': ', '.&lt;\/span&gt;' );<\/pre>\n<p>To:<\/p>\n<pre class=\"\">echo get_brands( $post-&gt;ID, ', ', ' &lt;span class=\"posted_in\"&gt;' . $labels-&gt;name . ': ', '&lt;\/span&gt;' );<\/pre>\n<p>&nbsp;<\/p>\n<h2>Show Brands ontop of SKU and Category meta<\/h2>\n<p>Change the &#8220;class-wc-brands.php&#8221; file on line 23 from:<\/p>\n<pre class=\"\">add_action( 'woocommerce_product_meta_end', array( $this, 'show_brand' ) );<\/pre>\n<p>To:<\/p>\n<pre class=\"\">add_action( 'woocommerce_product_meta_start', array( $this, 'show_brand' ) );<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Hacks are back &#8211; reference only<\/p>\n","protected":false},"author":6,"featured_media":3618,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[35,1,41],"tags":[],"class_list":["post-3607","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fluffy-tech-tips","category-random-mix","category-wordpress",""],"_links":{"self":[{"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/posts\/3607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/comments?post=3607"}],"version-history":[{"count":0,"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/posts\/3607\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/media\/3618"}],"wp:attachment":[{"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/media?parent=3607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/categories?post=3607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fluffytech.co.uk\/fluff\/wp-json\/wp\/v2\/tags?post=3607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}