Reader small image

You're reading from  Mastering WooCommerce - Second Edition

Product typeBook
Published inApr 2024
PublisherPackt
ISBN-139781835085288
Edition2nd Edition
Concepts
Right arrow
Author (1)
Patrick Rauland
Patrick Rauland
author image
Patrick Rauland

Patrick Rauland is obsessed with WooCommerce. He has used it as a customer, worked for WooCommerce support, developed core functionality in WooCommerce itself, led three releases, and helped plan their yearly conference (WooConf). He now helps people by writing his blog, creating courses for LinkedIn Learning/Lynda, and writing books. Patrick is also the co-founder of WooSesh, an online conference for WooCommerce developers and store owners. Patrick lives in Denver, Colorado, where you can probably find him at a local coffee shop, typing away
Read more about Patrick Rauland

Right arrow

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 has 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 athttps://developer.woocommerce.com/docs/creating-custom-settings-for-woocommerce-extensions/.

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:

Figure 13.4: ShipStation uses the WooCommerce Integration class

Figure 13.4: ShipStation uses the WooCommerce Integration class

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...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering WooCommerce - Second Edition
Published in: Apr 2024Publisher: PacktISBN-13: 9781835085288

Author (1)

author image
Patrick Rauland

Patrick Rauland is obsessed with WooCommerce. He has used it as a customer, worked for WooCommerce support, developed core functionality in WooCommerce itself, led three releases, and helped plan their yearly conference (WooConf). He now helps people by writing his blog, creating courses for LinkedIn Learning/Lynda, and writing books. Patrick is also the co-founder of WooSesh, an online conference for WooCommerce developers and store owners. Patrick lives in Denver, Colorado, where you can probably find him at a local coffee shop, typing away
Read more about Patrick Rauland