HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-recipe-maker/templates/settings/group-nutrition-calculation.php
<?php
/**
 * Template for the plugin settings structure.
 *
 * @link       https://bootstrapped.ventures
 * @since      5.7.0
 *
 * @package    WP_Recipe_Maker
 * @subpackage WP_Recipe_Maker/templates/settings
 */

$nutrition_calculation = array(
	'id' => 'nutritionCalculation',
	'icon' => 'measure-apple',
	'name' => __( 'Nutrition Facts Calculation', 'wp-recipe-maker' ),
	'required' => 'pro',
	'description' => __( 'Our API integration helps calculate the nutition facts for you.', 'wp-recipe-maker' ),
	'documentation' => 'https://help.bootstrapped.ventures/article/21-nutrition-facts-calculation',
	'settings' => array(
		array(
			'id' => 'nutrition_facts_calculation_round_to_decimals',
			'name' => __( 'Round quantity to', 'wp-recipe-maker' ),
			'description' => __( 'Number of decimals to round a quantity to when calculating nutrition facts.', 'wp-recipe-maker' ),
			'type' => 'number',
			'suffix' => 'decimals',
			'default' => '0',
		),
		array(
			'id' => 'nutrition_facts_calculation_ignore_small_quantity',
			'name' => __( 'Ignore small quantities', 'wp-recipe-maker' ),
			'description' => __( 'Ignore quantities smaller than this value when calculating nutrition facts.', 'wp-recipe-maker' ),
			'type' => 'number',
			'default' => '0',
		),
	),
);