Advertisement
locvfx

Auto tags Woocommerce Products

Nov 24th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. Woohoo...And we have success...!!!
  2.  
  3. Thanks to bheadrick's helpful post and input from the plugin's author Robert Reid at Strictly-Software.com (May I link here?) I got this working in about 5 minutes. To help out anyone else interested in tagging Woocommerce, here is what I did:
  4.  
  5. 1) The plugin will identify products because it has been coded to find everything that is not a "a page, attachment or revision ..." thus product_posts are good (no action, just FYI.)
  6. 2) Now, rename the file called strictlyautotags.class.php to strictlyautotags.class.php.txt and open it in your favorite text editor, do a Ctrl-H Find/Replace on all instances of $posttags and change them to $producttags,
  7. 3) AND do a Find/Replace for all instances of post_tags and change those to product_tags...
  8.  
  9. Re-save the file with the proper PHP extension, upload it to your /wp-content/plugins/strictly-autotags folder, then do a bulk edit on a handful of products to change them from draft to published, and observe the lovely tags!
  10.  
  11. Thanks again bheadrick and Robert!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement