• 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)
  • Plugin Author WP Delicious

    (@wpdelicious)

    Hi @dotmak,

    Currently, there is no option to add a custom unit. Our team is working on this feature and we are going to add this feature in the next update.

    We request you to wait for the next update.

    Thread Starter creature

    (@dotmak)

    Hello and thanks for your fast response, did the new update introduce the ability to add new units ?

    Plugin Author WP Delicious

    (@wpdelicious)

    Hi @dotmak,

    The feature is under development and will be included in the next update. We will release an update next week with the feature to add custom units as well as upload custom icons for recipe taxonomies.

    Plugin Author WP Delicious

    (@wpdelicious)

    Hi @dotmak,

    We have added this feature in version 1.1.2. Please update the plugin to the latest version.

    You can refer to this guide to add custom units – https://wpdelicious.com/docs/how-to-add-custom-units/

    If you face any issues, kindly let us know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding a new Unit’ is closed to new replies.