Getting to Know Woo: Exploring Server-Side Extensibility with Hooks

Co-written by @ralucastn and @nielslange


In the previous posts, we’ve looked at extensibility on the front end side, focusing on adding new content, modifying existing content, and extending payment methods. However, you may sometimes need to modify behavior on the server side. In this final post of the series, we will look at action and filter hooks available in the Cart and Checkout blocks.

Extensibility on the Server Side (Hooks)

There are also some PHP action and filter hooks provided for extending various aspects of checkout behavior on the server. Keep in mind that it’s generally preferable to use extension interfaces like the IntegrationRegistry instead of actions and filters, as they provide a more stable way to integrate. However, these actions and filters still allow for some more flexibility in complex integrations.

Actions

Please note that the list might change as we are continuously working on graduating or removing experimental features.

Filters

Please note that the list might change as we are continuously working on graduating or removing experimental features.

For more details, please head to our GitHub documentation:

Thanks for joining us

We hope you enjoyed our 5 part series on getting to know the Cart and Checkout blocks a little better. You can find a link to all the posts in this series in our original announcement post.

If you have any questions during the integration process, our recommendation is to reach out on our GitHub Discussions section Q&A – Extension Integrations and Customizations or in the Community Slack #woocommerce-blocks-and-block-themes channel.


Leave a Reply

Your email address will not be published. Required fields are marked *