Building a settings page with WooCommerce

When you're building your own plugin, you'll very likely have to build a settings page. There's a lot to building a settings page from scratch. But if you are just building an integration, WooCommerce created some technology that makes it easier for you to add your own settings screen.

We're going to cover some of the coding decisions in the WooCommerce Integration class. If you want, you can see the finished code at https://github.com/woogists/woocommerce-integration-demo.

We can see that one of the plugins we looked at earlier in this book takes advantage of the Integration class, which we can see in the following screenshot:

We're not going to explain every single line. But we are going to cover the essential lines and why you need them.

Let's build our own settings page using the Integration class. We'll start by creating the main file.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.88.249