• Resolved creature

    (@dotmak)


    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.