Kahuna Casino: A Detailed Review for Australian Players
Kahuna Casino has quickly risen as one of the favorite destinations for Australian online casino enthusiasts. Renowned […]
/** * Price Functions * * @package Give * @subpackage Functions * @copyright Copyright (c) 2016, GiveWP * @license https://opensource.org/licenses/gpl-license GNU Public License * @since 1.0 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Checks to see if a Give form has variable prices enabled. * * @since 1.0 * * @param int $form_id ID number of the form to check * * @return bool true if has variable prices, false otherwise */ function give_has_variable_prices( $form_id = 0 ) { if ( empty( $form_id ) ) { return false; } $form = new Give_Donate_Form( $form_id ); return $form->has_variable_prices(); } /** * Retrieves the variable prices for a form * * @since 1.0 * * @param int $form_id ID of the Give form * * @return array|bool Variable prices */ function give_get_variable_prices( $form_id = 0 ) { if ( empty( $form_id ) ) { return false; } $form = new Give_Donate_Form( $form_id ); return $form->prices; } /** * Retrieves the variable price ids for a form * * @since 1.8.8 * * @param int $form_id ID of the Give form * * @return array Variable prices */ function give_get_variable_price_ids( $form_id = 0 ) { if ( ! ( $prices = give_get_variable_prices( $form_id ) ) ) { return array(); } $price_ids = array(); foreach ( $prices as $price ) { $price_ids[] = $price['_give_id']['level_id']; } return $price_ids; } /** * Get the default amount for multi-level forms * * @access public * @since 1.0 * * @param int $form_id * * @return string $default_price */ function give_get_default_multilevel_amount( $form_id ) { $default_price = '1.00'; // Get default level price data. $default_level = give_form_get_default_level( $form_id ); $default_price = isset( $default_level['_give_amount'] ) ? $default_level['_give_amount'] : $default_price; return $default_price; } /** * Get Default Form Amount * * Grabs the default amount for set and level forms * * @param int $form_id * * @return string $default_price * @since 1.0 */ function give_get_default_form_amount( $form_id ) { if ( give_has_variable_prices( $form_id ) ) { $default_amount = give_get_default_multilevel_amount( $form_id ); } else { $default_amount = give_get_meta( $form_id, '_give_set_price', true ); } return apply_filters( 'give_default_form_amount', $default_amount, $form_id ); } /** * Determine if custom price mode is enabled or disabled. * * This function is wrapper function to Give_Donate_Form::is_custom_price_mode() * * @since 1.6 * * @param int $form_id Form ID. * * @use Give_Donate_Form::is_custom_price_mode() * * @return bool */ function give_is_custom_price_mode( $form_id = 0 ) { if ( empty( $form_id ) ) { return false; } $form = new Give_Donate_Form( $form_id ); return $form->is_custom_price_mode(); }
Kahuna Casino has quickly risen as one of the favorite destinations for Australian online casino enthusiasts. Renowned […]
When it comes to online casino gaming in Australia‚ bk9casinoau.com has quickly emerged as a favorite platform […]
The online casino world has seen an ever-growing variety of games capturing the hearts of players worldwide, […]
The world of online casino games is vast and continuously evolving‚ but occasionally‚ a game emerges that […]
The popularity of Mines by Spribe has surged rapidly among online casino players from India. Known for […]
Tra le tante proposte di slot online, Pirots 2 di ELK Studios si distingue per un mix […]
The Aviator game by Spribe has taken the online casino community in Singapore by storm, thanks to […]
De Gates of Olympus gokkast van Pragmatic Play heeft zich snel gevestigd als een favoriet onder Belgische […]
Online casino’s blijven innoveren en met Random Runner, de nieuwste gokkast van Stakelogic, is dat opnieuw bewezen. Dit […]
The online casino-game JetX by SmartSoft Gaming continues to capture the attention of players in Kenya with […]