Introduction

Offers for WooCommerce provides developer hooks so that you can customize and/or extend the plugin to suit your own needs.

Offers for WooCommerce Hooks Library

The following list includes all of the hooks that are currently available with the Offers for WooCommerce plugin.

Actions

make_offer_form_before_submit_button
Provides the ability to add content immediately before the submit button on the offer form.
make_offer_after_save_form_data
Triggered immediately after the offer form data is saved.
make_offer_after_buyer_meta_display
Triggered to be displayed immediately after the buyer meta data.
make_offer_email_display_custom_field_after_buyer_contact_details
Triggered to be displayed immediately after the buyer contact details.
ofwc_before_delete_woocoomerce_offer

Before any offer deletion

Parameter: $OfferID
angelleye_offer_for_woocommerce_admin_add_offer

On offer add/edit page in the admin panel

Parameter: $post
before_offer_summary_meta_box

Before offer summary meta box

Parameter: $post
 
after_offer_summary_meta_box

After offer summary meta box

Parameter: $post
 
angelleye_ofw_before_offer_action

Before saving the actual offer in the admin panel

Parameter: $post, $request
angelleye_ofw_offer_updated

Once the offer is updated

Parameter: $offer_args, $post_data
woocommerce_before_offer_submit

Fires when admin submits a response to the offer

Parameter: $is_counter_offer, $post,$formData,$newPostData
Angelleye_ofw_offer_received / woocommerce_after_offer_submit
Parameter: $is_counter_offer, $offer_args, $post
before_add_offer_to_cart

When someone adds the offer in cart

Parameter: $offer_id

woocommerce_make_offer_form_end

Offer form customization. This action can be used to customize the offer form on the front-end.

Parameter: $is_counter_offer, $on_exit_enabled

make_offer_form_before_submit_button

Offer form customization

Parameter: $is_counter_offer, $on_exit_enabled

ofw_before_auto_approve_offer

Triggered to be displayed before the Auto Approve Offer option.

Parameters: $offer_id, $product_id, $variant_id, $emails
ofw_before_auto_approve_offer_admin

Triggered to be displayed before the Auto Approve Offer option on the Admin side.

Parameters: $post_id
ofw_after_auto_approve_offer

Triggered to be displayed after the Auto Approve Offer option in enabled.

Parameters: $offer_id, $product_id, $variant_id, $emails
ofw_after_auto_approve_offer_admin

Triggered to be displayed after the Auto Approve Offer option is enabled in the admin side.

Parameters: $post_id
ofw_before_auto_decline_offer

Triggered to be displayed before the Auto Decline Offer option.

Parameters: $offer_id, $product_id, $variant_id, $emails
ofw_before_auto_decline_offer_admin

Triggered  before ‘declining an offer‘ in admin panel manage list page

Parameters: $post_id
ofw_after_auto_decline_offer

Triggered to be displayed after the Auto Decline Offer option in enabled.

Parameters: $offer_id, $product_id, $variant_id, $emails
ofw_after_auto_decline_offer_admin

Triggered  after ‘declining an offer‘ in admin panel manage list page

Parameters: $post_id

Filters

aeofwc_offer_form_top_message
Provides the ability to add custom HTML to the beginning of the offer form so that you can display your own messaging.
aeofwc_offer_form_label_quantity
Filter the label for the Quantity field on the offer form.
aeofwc_offer_form_label_price_each
Filter the label for the Price Each field on the offer form.
aeofwc_offer_form_label_total_offer_amount
Filter the label for the Total Offer Amount on the offer form.
aeofwc_offer_form_label_your_name
Filter the label for the Name field on the offer form.
aeofwc_offer_form_label_company_name
Filter the label for the Company Name field on the offer form.
aeofwc_offer_form_label_phone_number
Filter the label for the Phone Number field on the offer form.
aeofwc_offer_form_label_your_email_address
Filter the label for the Email Address field on the offer form.
aeofwc_offer_form_label_offer_notes
Filter the label for the Offer Notes field on the offer form.
aeofwc_offer_form_bottom_message
Provides the ability to add custom HTML to the end of the offer form so that you can display your own messaging.
aeofwc_seller_email_address

Allows you to change the offer recipient email, helps with multi-vendor environments. 

Parameters: $recipient, $offer_args

aeofwc_offer_form_label_submit_button
Provides the ability to set the value displayed on the offer form submit button.
angelleye_ofw_pre_email_sent

Fires before sending an email to users.

Parameters: $offer_email, $offer_args

angelleye_ofw_pre_offer_request

When some user submits the new offer

Parameters: $submit_request

ofw_not_allow_invalid_offer_status

Validation when someone makes an offer on an expired post or deleted post

 

Parameters: $boolean = false,  $offer_post

ofw_admin_created_offer_status

Change post-offer status

Parameters: $post_status, $post_id

ofw_my_account_my_offers_columns

Allows you to modify visible columns on offer listing

Parameters: Array $columns 

ofw_my_account_my_offers_query

Allows you to modify the listing query, helps when you want to fetch offer only by one vendor

Parameters: $query_args

aeofwc_offer_success_message

Allows you to modify the message users see when they have successfully submitted an offer.

Samples

Add Custom Fields to Offer Form
Download this sample script to see how you can easily add your own custom fields to the offer form that buyers fill out.

Download Sample Script