1. Home
  2. WooClientZone
  3. Hooks

Hooks

The following information is for developers interested in extending WooClientZone, or to develop WP plugins that hook directly to functionality provided by WooClientZone.

WooClientZone provides the following hooks:

Action hooks

wooclientzone_my_account_notifications_before

Fired in the front end (My Account) page right before listing the Client Zones that have communications unseen by the customer

wooclientzone_my_account_notifications_after

Fired in the front end (My Account) page right after listing the Client Zones that have communications unseen by the customer

wooclientzone_public_clientzone_before

Fired in the front end right before a Client Zone

wooclientzone_public_clientzone_after

Fired in the front end right after a Client Zone

wooclientzone_admin_clientzone_before

Fired in the back end (admin site) right before a Client Zone

wooclientzone_admin_clientzone_after

Fired in the back end (admin site) right after a Client Zone

Filter hooks

wooclientzone_settings

To filter all the back end options by passing the settings array
“wooclientzone_new_clientzone_messageTo filter the message the client sees on a new (empty) Client Zone

wooclientzone_clientzone_title_userlinked

To filter the title of a user-linked Client Zone (the callback function is passed the title)

wooclientzone_clientzone_title_orderlinked

To filter the title of an order-linked Client Zone (the callback function is passed the title and the order ID)

wooclientzone_clientzone_subtitle_userlinked

To filter the subtitle of a user-linked Client Zone (the callback function is passed the title)

wooclientzone_clientzone_subtitle_orderlinked

To filter the subtitle of an order-linked Client Zone (the callback function is passed the title and the order ID)

wooclientzone_order_edit_clientzone_link_public

To filter the message the client sees in the front end order-edit page with a link to the relevant Client Zone. This is only available for those orders that have a linked Client Zone (the callback function is passed the message and a nonced url to the Client Zone linked to that order)

wooclientzone_client_notification_email_to

To filter the client email address where the notification is sent; this filter can be used to add extra email addresses (as a comma-separated list)