RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Functions
  6. rpress_has_variable_prices()

rpress_has_variable_prices()

This function will check whether a fooditem has variable prices enabled. If the specified ID has variable prices, the function will return true, otherwise, it will return false.

Example:

if( rpress_has_variable_prices( $fooditem_id ) ) {
	//fooditem has variable prices enabled
} else {
	// variable prices are not enabled
}

How can we help?