Actions #
do_action(‘bkf_phone_order_customer_created’, int $customeraccount); #
Fires when a new customer is created via a phone order. $customeraccount passes the customer ID as an integer.
do_action(‘bkf_phone_order_mark_paid’, int $order_id); #
Fires after a phone order is marked paid. $order_id passes the order ID.
do_action(‘bkf_phone_order_send_invoice’, int $order_id); #
Fires after a phone order is invoiced (not paid). $order_id passes the order ID.
do_action(‘bkf_phone_order_save_draft’, int $order_id); #
Fires after a phone order is saved as a draft. $order_id passes the order ID.
do_action(‘bkf_phone_order_after_save’, int $order_id); #
Fires after all phone orders are saved. $order_id passes the order ID.
do_action(‘bkf_phone_order_before_submit’); #
Fires on the phone order form immediately before the submit button. Use to insert custom fields.
do_action(‘woocommerce_floristpress_shipping_add_rate’, BKF_Shipping_Method $method, array $rate); #
Fires when a new FloristPress delivery rate is applied to a package via BKF_Shipping_Method::calculate_shipping(). $method passes the current instance of BKF_Shipping_Method (which extends WC_Shipping_Method), and $rate passes an array with the rate details.
Filters #
apply_filters(‘bkf_debug’, boolean $default); #
Used to force-activate FloristPress’ debug mode. $default passes the current default value.
apply_filters(‘bkf_general_settings’, array $settings); #
Adds settings to the FloristPress general settings section.
apply_filters(‘bkf_pdf_settings’, array $settings); #
Adds settings to the FloristPress PDF settings section.
apply_filters(‘bkf_localisation_settings’, array $settings); #
Adds settings to the FloristPress > Localisation settings section.
apply_filters(‘bkf_dd_general_settings’, array $settings); #
Adds settings to the Delivery Dates general settings section.
apply_filters(‘bkf_dd_wd_settings’, array $settings); #
Adds settings to the Delivery Dates weekdays settings section.
apply_filters(‘bkf_dd_mr_settings’, array $settings); #
Adds settings to the Delivery Dates method restrictions settings section.
apply_filters(‘bkf_dd_fee_settings’, array $settings); #
Adds settings to the Delivery Dates fees settings section.