Igor Benić Profile picture
Feb 16 14 tweets 6 min read
What's your struggle when developing with or extending WooCommerce?

Do you miss something from their documentation?

Did you know they have a useful Wiki on their Github repository?

I've listed a few of their Wiki docs in this thread. 🧵
When working with WooCommerce, you might need to query products.

For that, you can use wc_get_products or WC_Product_Query.

Check various examples: github.com/woocommerce/wo…
Another thing I do a lot is working with Orders.

To query them you can use wc_get_orders and WC_Order_Query

Examples: github.com/woocommerce/wo…
I can guarantee, that if you work on a custom plugin or customizing a client's WooCommerce site, you'll probably have to manipulate the My Account page.

Here are some useful snippets:
github.com/woocommerce/wo…
Maybe even more than the My Account Page, you'll have to customize Checkout, Cart or some other parts of WooCommerce.

That's done by overwriting their templates.

Guide:
github.com/woocommerce/wo…
I added so many Settings fields and Tabs, I can't even count anymore.

Need to do the same?

The Wiki has got you covered: github.com/woocommerce/wo…
I work a lot around shipping methods, but I can't remember the last time I needed to write a custom one.

Nevertheless, it's good to know how a shipping method works. At least the core methods.

github.com/woocommerce/wo…
Working with Subscriptions? You may want to learn a bit about Payment Tokens.

WooCommerce has an API to work with tokens. You can learn how to retrieve them, use them and store new ones.

github.com/woocommerce/wo…
Another useful thing to learn, especially if working with Subscriptions. The Queue system!

They do not rely on the default WordPress CRON.

github.com/woocommerce/wo…
At @growdevelopment we work a lot with custom queries as well. For that, you need to know about WooCommerce Database Tables.

github.com/woocommerce/wo…
@growdevelopment There is a lot more on their Wiki, so check the right sidebar for more information such as Customer object data and similar.

github.com/woocommerce/wo…
@growdevelopment The WooCommerce Developer Resources can also help you with guides, examples, and information on all parts of it.

developer.woocommerce.com

Subscribe to their recent news so you get updates on their new releases.
@growdevelopment I've also written several specific tutorials on WooCommerce.

You're welcome to check them out: ibenic.com/tag/woocommerc…
@growdevelopment Thank you for reading this whole thread!

Help me spread these resources that might not be known to some WooCommerce developers, by retweeting the first tweet :)

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Igor Benić

Igor Benić Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @igorbenic

Feb 14
I am embarrassed to say, but I didn't understand hooks at first.

Started fully understanding hooks when I started working on my custom #WordPress plugins.

I'll try to teach you everything about them in this thread. 👇 💻
At first, the WordPress Hook system was also called the Plugin API, because it's the core system that allowed extending WordPress.

This is the old documentation: codex.wordpress.org/Plugin_API

The new one is a little better at explaining: developer.wordpress.org/plugins/hooks/
Let's talk about actions. When you start developing, you'll most likely find code snippets that use add_action().

Reference: developer.wordpress.org/reference/func… Image
Read 18 tweets
Feb 11
I firmly believe anyone can learn how to develop with WordPress.

The problem is, there are only a couple of resources for beginners. And it can become overwhelmed.

That's why I compiled this helpful list for you.

👇 Thread:
Plugins are one of the best things about WordPress.

When developing plugins, you learn a lot about WordPress as well. So I would focus on it first.

Check the Plugin Handbook:

developer.wordpress.org/plugins/
Next up are themes. They are used to define how your site looks and work on the front.

The classic themes are still used a lot, so definitely learn how such themes work.

developer.wordpress.org/themes/
Read 12 tweets
Jan 17
I investigated a bit the success of Potion.so. Mostly because I am thinking of building in public. So let’s see how @noahwbragg is building in public and after only 10 months of opening the product to public, he went full-time. #buildinpublic
@noahwbragg This thread is really long, so if you want to see all his tweets on Potion, you can use this in the Twitter search (and replace YEAR-MONTH-DAY): (Potion OR SaaS OR Notion OR saas) (from:noahwbragg) until:YEAR-MONTH-DAYsince:YEAR-MONTH-DAY -filter:replies
@noahwbragg TL;DR (1 / 2) In short, here is what @noahwbragg does:

- Share ups and downs while building the product
- Uses YouTube to showcase features or talks about behind the scenes
- Showcasing how others are using Potion or what can be built with it
Read 73 tweets
Jan 17
In ~6 hours, I'll publish a set of 60 tweets about how @noahwbragg built @potion_so and went full-time. Before that, do know that he is also a co-host of the podcast @pjourneypod with @digitaltrouble. Here is a list of episodes that mention Potion! Chronologically. #buildinpublic
"Coming to the Idea for Potions"
share.transistor.fm/s/22e9f619

"Simplifying Goal Tracking"
share.transistor.fm/s/0cf65200

"Feeling Overwhelmed"
share.transistor.fm/s/4545914a

"Many Open Threads"
share.transistor.fm/s/6b7fb4b5

"Launching Early Access"
share.transistor.fm/s/e0fb4b85
"Dealing with Competition"
share.transistor.fm/s/79fd258f

"Getting the value of Twitter"
share.transistor.fm/s/d112b0fa

"Stair Stepping Back"
share.transistor.fm/s/400962cd

"How the last 6 months have felt"
share.transistor.fm/s/be24e6ad

"Finding Channels and Getting Coins"
share.transistor.fm/s/42afecde
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

:(