RestroPress

⌘K
  1. Home
  2. RestroPress
  3. Developer Docs
  4. Functions
  5. 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?