• Resolved lsantaniello

    (@lsantaniello)


    Hi guys, I’m an expert developer but I did’t never work with wordpress. I read some tutorials on How to create a simple plugin. Now I need to develop a more complex plugin in order to extends the purchase order flow (with woo commerce). For example, when the user complete the order, I need to start my custom procedure. Could you please help me. I don’t know where I need start.

    Please help me

    Thanks.

    • This topic was modified 7 years, 9 months ago by lsantaniello.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m assuming those tutorials went over action and filter hooks? If not, they are not good tutorials because these hooks are the primary way plugins interact with WP core.

    While there is no requirement that plugins provide similar hooks, you are fortunate that WooCommerce provides many hooks itself. You need to identify the right action or filter in WooCommerce source code that fires when the order is completed. Your procedure can be hooked to this action or filter. When the order is completed, your procedure will be called.

    Similar for any other procedure you need done when a certain event happens.

    Thread Starter lsantaniello

    (@lsantaniello)

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extend order flow’ is closed to new replies.