Nutrition

Percent Daily Value Calculations

Each nutritional item (Fat, Saturated Fat, etc.) has its own unique daily value calculation. This value is set to American standards by default, but this number varies in different parts of the world. You can customize these values with some simple filters.

All Available Filters:

  • Total Fat
    cooked_pdv_fat
    Default: 65
  • Saturated Fat
    cooked_pdv_satfat
    Default: 65
  • Cholesterol
    cooked_pdv_cholesterol
    Default: 300
  • Sodium
    cooked_pdv_sodium
    Default: 2400
  • Potassium
    cooked_pdv_potassium
    Default: 3500
  • Total Carbohydrates
    cooked_pdv_carbs
    Default: 300
  • Fiber
    cooked_pdv_fiber
    Default: 25
  • Protein
    cooked_pdv_protein
    Default: 50

Example — "Saturated Fat"
Filter Name: cooked_pdv_satfat

add_filter( 'cooked_pdv_satfat', 'custom_cooked_pdv_satfat', 10, 1 );
function custom_cooked_pdv_satfat( $value ){
    // The default value is '65', but we'll change that to '50' instead. Just return it:
    return 50;
}