Adding a new Unit
-
Hello, i’ve tried adding the following code based on instructions found in CoreFunctions.php in order to add a new Unit for ingredients
add_filter( 'delicious_recipes_ingredient_units', 'add_measurements' ); function add_measurements($measurements){ $measurements['ff'] = array( 'singular_abbr' => _x('φ','Φ?λλο','delicious-recipes'), 'plural_abbr' => _x('φ', 'Φ?λλα','delicious-recipes'), 'singular' => esc_html__('φ?λλο','delicious-recipes'), 'plural' => esc_html__('φ?λλα','delicious-recipes'), 'variations' => array( 'φλ', 'φλ.', 'φ?λλο', 'φ?λλα' ), ); return $measurements; }
but without any results, i still can’t see my new unit
am i missing something?
Thanks for your time
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding a new Unit’ is closed to new replies.