First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
| <?php | |
| function jk_add_custom_sku() { | |
| $args = array( | |
| 'label' => __( 'Custom SKU', 'woocommerce' ), | |
| 'placeholder' => __( 'Enter custom SKU here', 'woocommerce' ), | |
| 'id' => 'jk_sku', | |
| 'desc_tip' => true, | |
| 'description' => __( 'This SKU is for internal use only.', 'woocommerce' ), | |
| ); |
| /* | |
| * Add our Custom Fields to simple products | |
| */ | |
| function mytheme_woo_add_custom_fields() { | |
| global $woocommerce, $post; | |
| echo '<div class="options_group">'; | |
| // Text Field |
| @mixin fontface($name, $file, $weight: normal, $style: normal){ | |
| @font-face { | |
| font-family: "#{$name}"; | |
| src: url('../fonts/#{$file}.eot'); | |
| src: url('../fonts/#{$file}.eot?#iefix') format('embedded-opentype'), | |
| url('../fonts/#{$file}.woff') format('woff'), | |
| url('../fonts/#{$file}.ttf') format('truetype'), | |
| url('../fonts/#{$file}.svg?#webfont') format('svg'); | |
| font-weight: $weight; | |
| font-style: $style; |
To install, you need to have the WordPress i18n library on your computer. Check it out using SVN:
sudo svn co http://i18n.svn.wordpress.org/tools/trunk/ /usr/lib/wpi18n
You don't have to put the library in /usr/lib/wpi18n, but if you don't put it there, make sure to set the $WP_I18N_LIB environment variable in your .bashrc or .bash_profile file (with no trailing slash):
export WP_I18N_LIB="/path/to/i18n/lib"