A popular method is to hook to the order status.
You have several status names to choose from:
- completed
- processing
- cancelled
- on-hold
You would use it like this:
add_action('woocommerce_order_status_processing'
In addition you can intercept a certain change like this:
add_action('woocommerce_order_status_on-hold_to_completed'
Finally you can intercept any change that takes place like this:
add_action('woocommerce_order_status_changed'
Related Posts:
- Woocommerce: Add column to ORDERS admin page with items purchased
- Move WooCommerce menu entries to top of dashboard
- Cannot login in WordPress even after changing hash password in phpmyadmin
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- adding custom stylesheet to wp-admin
- How to remove the core embed blocks in WordPress 5.6?
- How to order by post meta name in wp admin?
- How set defaults on wpLink()
- Remove dashboard, use Pages tab as default
- How to list ALL Pages in the dashboard?
- Is there un-wp_autop function?
- how to force caching of wordpress admin
- Slow admin – waits and is blocked for a long time
- “leftover” notifications left on ever admin screen?
- Excerpt textarea missing on post editing page in admin panel
- Dashboard links not working
- jquery UI in wordpress admin
- Resize Admin Featured Image Thumbnail in CPT Edit Screen
- Restrict access in wp-admin area?
- Retrieve Path of admin.php
- Registering jQuery kills admin functions
- Adding HTML/Text to Top of Subscriber’s Profile Backend Page
- Display $pagenow error notice on all admin pages
- How can I restrict a user to a specific item in the WordPress Admin? [closed]
- WordPress address URL keeps dropping the www
- How to show postmeta in custom columns for the posts screen?
- disable a wp javascript on live website, but not on wp-admin page
- wp_nonce_url to users.php for deleting user not working
- How to stop – Database Update Required – from happening again?
- Moving wp-admin to a different to a subdomain
- Can’t login to Dashboard when changing site URL to HTTPS
- Limit access to wp_admin
- Not Found (404) error on admin page, CSS gone on blog
- MySQL CPU Usage Surge up When Multiple Post Editor Pages are open
- Remove All in One Pack from the admin bar
- Post Editor not working on WordPress 3.5.1
- How to Change The WordPress Login URL Without Plugin
- transition_post_status not working via Quick Edit
- how to customize wp-admin page using child theme
- Enque script based on url paramater
- new subdomain to apply as main domain
- How to disable admin notice in child theme? [closed]
- I can´t access my admin panel. I tried all possible solutions
- Blank page for wp-admin after i uploaded the website from my localhost to the live server
- Ajax solution similar to WP Categories functioning in Admin area
- Difference between admin and user admin
- How to get specific page screen ID
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Hide admin menu on update_option
- Editing edit-tags.php page in wp-admin
- What is the correct way to get only display plugin for Administrator Only
- displaying an error before update_post_meta
- firing function at login within class
- Browse Happy in 3.2
- How to break line / add to ADMIN menu
- Adding Notification Bubble on Admin Top Bar
- WordPress admin page not found error
- Use of domain name
- “Add New” button on custom post type grid
- Where is function to prevents non logged users access wp-admin?
- Registering for a domain on WordPress
- WordPress site stopped working after simply opening header.php in the wp-admin editor
- CSS of the admin panel
- User Profile Avatars
- Ajax requests from front-end with jQuery Fancybox
- WordPress admin right sidebar isn’t working
- Why wp redirects me to wp-login.php when I visit a rewritten wp-admin URL?
- WordPress menu to change page title
- wp-admin blocking causing http error on uploads
- Performance-issue in WP-admin with a lot of posts
- DISALLOW_FILE_EDIT is false but I still am not able to edit files from the admin interface and the menus do not show up
- Updated MAMP and localhost on MacOS site no longer accessible
- Don’t run code if in customizer or privew
- What hooks should you use to create a table only once?
- Custom admin menu order fails if slugs are complicated
- Cant access wp-admin
- Function to get a ‘post selector’ UI?
- WordPress wp-admin Page
- How can I trigger a javascript function after a post update on edit post screen in wordpress admin panel?
- restrict admin panel sections to users
- how to set not to be logined in wp-admin except administrator?
- CSRF attack to create USER
- WordPress, content editor default type
- Changing headers for an export from within a PHP class extension
- When installing wordpress through WP CLI mysite.com/admin not working
- Remove capability to interact with a page
- WordPress Login for multiple sites
- How do I change the WordPress Address URL only and still login to wp-admin
- wordpress wp-admin showing white screen with no error
- Undeletable posts, users or other content
- WordPress Admin panel issue
- Can’t toggle between Visual and Text or Screen Options
- Cannot Update wp DB – Get 500 Error
- plugin: ‘init’ hook, check if we’re not in admin
- Is there ever a legitimate reason for an outsider to access wp-admin
- PHP Fatal error: Uncaught Error: Cannot unset string offsets when trying to upload any file to media library
- Wp doesn’t save meta box data
- get_current_screen() does not return parent_file
- Valid WordPress html elements
- Unable to access WordPress admin panel