[WordPress] 外掛分享: CFF Fitness and Health Operations

首頁外掛目錄 › CFF Fitness and Health Operations
WordPress 外掛 CFF Fitness and Health Operations 的封面圖片
80+
安裝啟用
★★★★★
5/5 分(1 則評價)
110 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.0.1 上架:2023-01-05

內容簡介

CFF Fitness and Health Operations 是 Calculated Fields Form 的擴充外掛,提供 BMI、體脂率、基礎代謝率及目標體重等健身與健康計算功能,可直接在表單的計算欄位中使用公式運算,適合打造健康評估相關網站。

【主要功能】
• 計算身體質量指數(BMI)並可輸出文字分級結果
• 計算體脂肪百分比(BFP)含性別與年齡參數
• 估算基礎代謝率(BMR)搭配七種活動量等級
• 依目標體重計算每日建議攝取熱量(WEIGHTGOAL)
• 支援公制與英制單位換算
• 可輸出數值或文字描述兩種結果格式

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「CFF Fitness and Health Operations」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The plugin implements the “Fitness and Health” operations module to be used from the equations of the “Calculated Fields Form” plugin. The “Calculated Fields Form” plugin is a form builder with a lot of potential, and its “Calculated” control is one of its great strengths. It allows you to enter mathematical formulas, determine the distance between addresses, plot graphs, process dates, manage files, and many other operations.

The “CFF Fitness and Health Operations” plugin enhances, even more, the possibilities of the “Calculated Fields Form” plugin, including essential operations in fitness or health-related projects as listed below:
BMI: Calculates the Body Mass Index based on the user’s height and weight. It accepts three parameters: weight (in Kg), height (in meters), and textual output (true or false) (optional, default false). When the textual output is true, the operation result would be any of the following texts: Severe Thinness, Moderate Thinness, Mild Thinness, Normal, Overweight, Obese Class I, Obese Class II, Obese Class III.
Ex: BMI(85, 1.65) Result: 31.2
Ex: BMI(85, 1.65, true) Result: Obese Class I
For weight in pounds, divide its value by 2.2. Ex: BMI(187/2.2, 1.65) Result: 31.2
For heights in feet and inches, 1 foot = 0.3048 m and 1 in = 0.0254 m. Ex: If the user’s height is 5 ft and 4.96 in BMI(85, 50.3048+4.960.0254) Result: 31.2
BFP: The Body Fat Percentage calculator estimates the total body fat percentage. It accepts five parameters: weight (in Kg), height (in meters), gender (male or 0, female or 1), age (in years), and textual output (true or false) (optional, default false). When the textual output is true, the operation result would be any of the following texts: Underfat, Healthy, Overweight, Obese.
Ex: BFP(85, 1.65, "male", 44) Result: 31.39
Ex: BFP(85, 1.65, "male", 44, true) Result: Obese
For weight in pounds, divide its value by 2.2. Ex: BFP(187/2.2, 1.65, "male", 44) Result: 31.39
For heights in feet and inches, 1 foot = 0.3048 m and 1 in = 0.0254 m. Ex: If the user’s height is 5 ft and 4.96 in BFP(85, 50.3048+4.960.0254, "male", 44) Result: 31.39
BMR: The Basal Metabolic Rate calculator estimate the number of calories a person needs to consume each day. It accepts five parameters: weight (in Kg), height (in meters), gender (male or 0, female or 1), age (in years), and activity level (bmr, sedentary, light, moderate, active, very, extra)
bmr: amount of energy expended per day at rest.
sedentary: little or no exercise.
light: exercise 1-3 times/week.
moderate: exercise 4-5 times/week.
active: daily exercise or intense exercise 3-4 times/week.
very: intense exercise 6-7 times/week.
extra: very intense exercise daily, or physical job.
Ex: BMR(85, 1.65, "male", 44, "sedentary") Result: 2000
For weight in pounds, divide its value by 2.2. Ex: BMR(187/2.2, 1.65, "male", 44, "sedentary") Result: 2000
For heights in feet and inches, 1 foot = 0.3048 m and 1 in = 0.0254 m. Ex: If the user’s height is 5 ft and 4.96 in BMR(85, 50.3048+4.960.0254, "male", 44, "sedentary") Result: 2000
WEIGHTGOAL: The Goal Weight Calculator estimates the number of calories a person needs to consume each day to reach his/her goal weight. It accepts six parameters: weight (in Kg), height (in meters), gender (male or 0, female or 1), age (in years), and activity level (bmr, sedentary, light, moderate, active, very, extra), goal (maintain, mild loss, loss, extreme loss, mild gain, gain, fast gain)
Ex: WEIGHTGOAL(85, 1.65, "male", 44, "sedentary", "mild loss") Result: 1725
For weight in pounds, divide its value by 2.2. Ex: WEIGHTGOAL(187/2.2, 1.65, "male", 44, "sedentary", "mild loss") Result: 1725
For heights in feet and inches, 1 foot = 0.3048 m and 1 in = 0.0254 m. Ex: If the user’s height is 5 ft and 4.96 in WEIGHTGOAL(85, 50.3048+4.960.0254, "male", 44, "sedentary", "mild loss") Result: 1725
IBW: The Ideal Body Weight Calculator estimates ideal weight (in Kg) based on the person height, and gender. It accepts two parameters: height (in meters), and gender (male or 0, female or 1)
Ex: IBW(1.65, "male") Result: 61.41
For heights in feet and inches, 1 foot = 0.3048 m and 1 in = 0.0254 m. Ex: If the user’s height is 5 ft and 4.96 in IBW(50.3048+4.960.0254, "male") Result: 61.41
PREGNANCY: Determines the conception or due dates based on the first day of last menstrual period. It accepts three parameters: date, date format (Ex. dd/mm/yyyy), and output (due or 0, conception or 1)
Ex: PREGNANCY("05/14/2022", "mm/dd/yyyy", "due") Result: 02/18/2023
Ex: PREGNANCY("05/14/2022", "mm/dd/yyyy", "conception") Result: 05/28/2022
Use
The “CFF Fitness and Health Operations” plugin includes the new “Fitness and Health” entry (see screenshots) in the operations list of the calculated fields (Insert a calculated field in the form and scroll down the operations list in your configuration). Once the “Fitness and Health” option is selected, the plugin enables the operations set and documentation. By clicking on the operation buttons, they are added to the equation’s editor.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon