Webtomizer

Hooks Reference

Below is a full list of actions & filters in our plugin

  • Actions
    • wc_deposits_enqueue_product_scripts : this action is triggered when deposit buttons template is loaded on single product page
    • wc_deposits_enqueue_deposit_button_scripts : this action is triggered when deposit buttons template is loaded on checkout page when checkout mode is enabled
    • wc_deposits_after_settings_tabs_content : this action could be used to output the html for an extra tab body in plugin settings
    • wc_deposits_settings_tabs_general_tab : this action could be used to output any extra fields in general tab, plugin settings
    • wc_deposits_settings_tabs_display_text_tab : this action could be used to output any extra fields in display & text tab, plugin settings
    • wc_deposits_settings_tabs_checkout_mode_tab : this action could be used to output any extra fields in checkout-mode tab, plugin settings
    • wc_deposits_settings_tabs_second_payment_tab : this action could be used to output any extra fields in second payment tab, plugin settings
    • wc_deposits_settings_tabs_gateways_tab : this action could be used to output any extra fields in gateways tab, plugin settings
  • Filters
    • wc_deposits_cart_item_deposit_data : this filter controls the total deposit amount for cart item,or it can be set to disable deposit for cart item if value returned is 0 . variable passed through this filter are $deposit_data , $cart_item
    • woocommerce_deposits_cart_deposit_amount : this filter controls the total deposit amount for cart contents ,or it can be set to disable deposit for cart if value returned is 0. variables passed through this filter are $deposit_amount , $cart_total
    • wc_deposits_deposit_breakdown_tooltip_labels : Labels included in deposit breakdown tooltip (if enabled ) variable passed through this filter is $labels ( array)
    • woocommerce_deposits_tooltip_html : html of deposit breakdown tooltip (if enabled ) variable passed through this filter is $tooltip_html ( string)
    • woocommerce_deposits_tooltip_html : html of deposit breakdown tooltip (if enabled ) variable passed through this filter is $tooltip_html ( string)
    • wc_deposits_product_enable_deposit : controls whether deposit is enabled disabled for a product. variables passed through this filter are $enabled ( boolean) and $product_id
    • wc_deposits_product_force_deposit : controls whether deposit is forced for a product. variables passed through this filter are $forced ( boolean) and $product_id
    • wc_deposits_product_deposit_amount : controls deposit amount for a product. variables passed through this filter are $amount ( float) and $product_id
    • wc_deposits_product_deposit_amount_type : controls deposit amount type for a product. variables passed through this filter are $amount_type ( string , valid values are “fixed” and “percent” ) and $product_id
    • wc_deposits_partial_payment_name : when an order is created with partial payments, during checkout the name of item is ‘Partial Payment for order %s’ (%s being the parent order ) , this filter allows changing the default value variables passed through this filter are $name (string) , $payment (array) and $order_id (integer)
    • wc_deposits_admin_partial_payment_actions : controls the actions for a single payment in partial payments meta box, order editor. variables passed through this filter are $actions (array) , $payment (array) and $order_id (integer)
    • wc_deposits_settings_tabs : controls the navigation tabs in plugin settings variable passed through this filter is $tabs (array)
    • wc_deposits_email_show_partial_payments_summary : display or remove partial payments summary table in emails variables passed through this filter are $show (boolean) , $order(object), $email (object)
    • wc_deposits_myaccount_show_partial_payments_summary : display or remove partial payments summary table in “My account” page. variables passed through this filter are $show (boolean) , $order(object), $email (object)
    • wc_deposits_thankyou_show_partial_payments_summary : display or remove partial payments summary table in “Order received / Thank you” variables passed through this filter are $show (boolean) , $order(object), $email (object)
    • wc_deposits_partial_payment_title : used to override the date / title displayed in partial payments table variables passed through this filter is $title (string) and $partial_payment(object)

Still stuck ? submit a support ticket