This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// They could be pa_color, pa_flavor, pa_scent, it all depends how you named your product attribute | |
// all attributes are formated with the prefix pa_ *then your attrbute name* | |
// get the current product object to get the pa_size attributes, these might differ. | |
global $product; | |
// grab an array of product "size" attributes | |
$_sizes = wc_get_product_terms( $product->id, 'pa_size', array( 'fields' => 'names' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
NewerOlder