Title: Adding a new Unit
Last modified: January 26, 2021

---

# Adding a new Unit

 *  Resolved [creature](https://wordpress.org/support/users/dotmak/)
 * (@dotmak)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/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)

 *  Plugin Author [WP Delicious](https://wordpress.org/support/users/wpdelicious/)
 * (@wpdelicious)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adding-a-new-unit/#post-13959735)
 * Hi [@dotmak](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dotmak/)
 * (@dotmak)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-a-new-unit/#post-14007424)
 * Hello and thanks for your fast response, did the new update introduce the ability
   to add new units ?
 *  Plugin Author [WP Delicious](https://wordpress.org/support/users/wpdelicious/)
 * (@wpdelicious)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-a-new-unit/#post-14008049)
 * Hi [@dotmak](https://wordpress.org/support/users/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](https://wordpress.org/support/users/wpdelicious/)
 * (@wpdelicious)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-a-new-unit/#post-14061227)
 * Hi [@dotmak](https://wordpress.org/support/users/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/](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.

 * ![](https://ps.w.org/delicious-recipes/assets/icon-256x256.jpg?rev=3452000)
 * [WP Delicious - Recipe Plugin for Food Bloggers (formerly Delicious Recipes)](https://wordpress.org/plugins/delicious-recipes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/delicious-recipes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/delicious-recipes/)
 * [Active Topics](https://wordpress.org/support/plugin/delicious-recipes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/delicious-recipes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/delicious-recipes/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [WP Delicious](https://wordpress.org/support/users/wpdelicious/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/adding-a-new-unit/#post-14061227)
 * Status: resolved