Title: Dev hooks?
Last modified: August 1, 2025

---

# Dev hooks?

 *  Resolved [rickg](https://wordpress.org/support/users/sitetherapy-rick/)
 * (@sitetherapy-rick)
 * [10 months ago](https://wordpress.org/support/topic/dev-hooks/)
 * I’m importing orders and want the plugin to renumber orders at the end of the
   process. If I click Update in the admin, this happens, but not when importing
   the order items. I execute the following code at the end of the import as it 
   saves the post (order):
 * $order = new WC_Order( $post_id );
   $order->calculate_totals();$order->save();
   Despite this the order doesn’t invoice this plugin. Is there a function to do
   that?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [rickg](https://wordpress.org/support/users/sitetherapy-rick/)
 * (@sitetherapy-rick)
 * [9 months, 4 weeks ago](https://wordpress.org/support/topic/dev-hooks/#post-18582087)
 * More info: 
   Uncommenting the line:
 *  add_action(‘wp_insert_post’, array($this, ‘set_sequential_number’), 10, 2);
 * in the file class-wt-advanced-order-number.php does what I want but I’d still
   like a way to do this in my code since that will be overwritten when the plugin
   updates
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/dev-hooks/#post-18584006)
 * Hi [@sitetherapy-rick](https://wordpress.org/support/users/sitetherapy-rick/),
 * We use the `woocommerce_new_order` hook, not `wp_insert_post` in the plugin. 
   Kindly let us know the issue you’re facing when `add_action('wp_insert_post',
   array($this, 'set_sequential_number'), 10, 2);` is hidden. Also, please share
   your WooCommerce system status report (WooCommerce > Status > System status >
   Get system report) for a better understanding of the issue.
 * You may share the details via [this link](https://www.webtoffee.com/contact/)
   if you have any privacy concerns.
 *  Thread Starter [rickg](https://wordpress.org/support/users/sitetherapy-rick/)
 * (@sitetherapy-rick)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/dev-hooks/#post-18594687)
 * If I don’t uncomment that line then the order number does not update when I do
   an import – it uses the default Woo order number. To get the plugin to update
   the order number I need to open each imported order and click the Update button
   If I do uncomment the wp_insert_post line the order number correctly updates 
   to the settings I’ve created in your plugin
   NOTE: You’ll see a some complaints
   below about woocommerce templates. These are irrelevant since I’m using Breakdance
   which disables the theme.
 * ` WordPress Environment</p></p> <p>` WordPress Environment
 * WordPress address (URL): [https://kaiscissors.biz](https://kaiscissors.biz)
   Site
   address (URL): [https://kaiscissors.biz](https://kaiscissors.biz)WC Version: 
   10.0.4Legacy REST API Package Version: The Legacy REST API plugin is not installed
   on this site.Action Scheduler Version: ✔ 3.9.2Log Directory Writable: ✔WP Version:
   6.8.2WP Multisite: –WP Memory Limit: 768 MBWP Debug Mode: ✔WP Cron: –Language:
   en_USExternal object cache: ✔ Server Environment
 * Server Info: nginx/1.28.0
   Server Architecture: Linux 6.8.0-62-generic x86_64PHP
   Version: 8.2.28PHP Post Max Size: 64 MBPHP Time Limit: 30PHP Max Input Vars: 
   1000cURL Version: 8.5.0OpenSSL/3.0.13
 * SUHOSIN Installed: –
   MySQL Version: 8.4.5Max Upload Size: 64 MBDefault Timezone
   is UTC: ✔fsockopen/cURL: ✔SoapClient: ✔DOMDocument: ✔GZip: ✔Multibyte String:
   ✔Remote Post: ✔Remote Get: ✔ Database
 * WC Database Version: 10.0.4
   WC Database Prefix: npw_Total Database Size: 150.75MBDatabase
   Data Size: 111.65MBDatabase Index Size: 39.10MBnpw_woocommerce_sessions: Data:
   0.02MB + Index: 0.02MB + Engine InnoDBnpw_woocommerce_api_keys: Data: 0.02MB 
   + Index: 0.03MB + Engine InnoDBnpw_woocommerce_attribute_taxonomies: Data: 0.02MB
   + Index: 0.02MB + Engine InnoDBnpw_woocommerce_downloadable_product_permissions:
   Data: 0.02MB + Index: 0.06MB + Engine InnoDBnpw_woocommerce_order_items: Data:
   0.02MB + Index: 0.02MB + Engine InnoDBnpw_woocommerce_order_itemmeta: Data: 0.08MB
   + Index: 0.09MB + Engine InnoDBnpw_woocommerce_tax_rates: Data: 0.02MB + Index:
   0.06MB + Engine InnoDBnpw_woocommerce_tax_rate_locations: Data: 0.02MB + Index:
   0.03MB + Engine InnoDBnpw_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
   + Engine InnoDBnpw_woocommerce_shipping_zone_locations: Data: 0.02MB + Index:
   0.05MB + Engine InnoDBnpw_woocommerce_shipping_zone_methods: Data: 0.02MB + Index:
   0.00MB + Engine InnoDBnpw_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
   + Engine InnoDBnpw_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
   + Engine InnoDBnpw_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_ac_segments:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_actionscheduler_actions: Data:
   0.11MB + Index: 0.11MB + Engine InnoDBnpw_actionscheduler_claims: Data: 0.02MB
   + Index: 0.02MB + Engine InnoDBnpw_actionscheduler_groups: Data: 0.02MB + Index:
   0.02MB + Engine InnoDBnpw_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB 
   + Engine InnoDBnpw_admin_columns: Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_breakdance_icon_sets:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_breakdance_icons: Data: 2.52MB
   + Index: 0.34MB + Engine InnoDBnpw_commentmeta: Data: 0.02MB + Index: 0.03MB 
   + Engine InnoDBnpw_comments: Data: 22.55MB + Index: 18.09MB + Engine InnoDBnpw_ewwwio_images:
   Data: 1.52MB + Index: 1.75MB + Engine InnoDBnpw_ewwwio_queue: Data: 0.02MB + 
   Index: 0.02MB + Engine InnoDBnpw_facetwp_index: Data: 0.14MB + Index: 0.20MB 
   + Engine InnoDBnpw_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_gf_draft_submissions:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_gf_entry: Data: 0.50MB + Index:
   0.14MB + Engine InnoDBnpw_gf_entry_meta: Data: 1.52MB + Index: 2.08MB + Engine
   InnoDBnpw_gf_entry_notes: Data: 1.52MB + Index: 0.17MB + Engine InnoDBnpw_gf_form:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_gf_form_meta: Data: 0.03MB + 
   Index: 0.00MB + Engine InnoDBnpw_gf_form_revisions: Data: 0.02MB + Index: 0.03MB
   + Engine InnoDBnpw_gf_form_view: Data: 0.08MB + Index: 0.03MB + Engine InnoDBnpw_gf_rest_api_keys:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDBnpw_links: Data: 0.02MB + Index: 
   0.02MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_customers: Data: 3.52MB + Index:
   0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_customers_pairs: Data: 0.02MB + 
   Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_data_pairs: Data: 0.08MB 
   + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_items: Data: 2.52MB + Index:
   0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_account: Data: 0.09MB + Index:
   0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_class: Data: 0.02MB + Index:
   0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_customertype: Data: 0.02MB 
   + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_inventorysite: Data:
   0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_paymentmethod:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_salesrep:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_salestaxcode:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_shipmethod:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_template:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_list_term:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_log: Data:
   1.52MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_map_paymentmethod:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_map_promo_code:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_map_shipping_product:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_map_tax: Data:
   0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_map_wq_cf: Data:
   0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_product_pairs: Data:
   0.05MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_variation_pairs:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_mw_wc_qbo_desk_qbd_vendors: Data:
   0.23MB + Index: 0.00MB + Engine InnoDBnpw_options: Data: 3.36MB + Index: 1.56MB
   + Engine InnoDBnpw_oses_attachments: Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_oses_clicks:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_oses_email_attachments: Data:
   0.02MB + Index: 0.02MB + Engine InnoDBnpw_oses_emails: Data: 22.52MB + Index:
   0.11MB + Engine InnoDBnpw_oses_failures: Data: 0.02MB + Index: 0.00MB + Engine
   InnoDBnpw_oses_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_pmxe_exports:
   Data: 0.08MB + Index: 0.00MB + Engine InnoDBnpw_pmxe_google_cats: Data: 0.39MB
   + Index: 0.00MB + Engine InnoDBnpw_pmxe_posts: Data: 0.09MB + Index: 0.00MB +
   Engine InnoDBnpw_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_pmxi_files:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_pmxi_geocoding: Data: 0.02MB 
   + Index: 0.03MB + Engine InnoDBnpw_pmxi_hash: Data: 4.52MB + Index: 0.00MB + 
   Engine InnoDBnpw_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_pmxi_images:
   Data: 0.14MB + Index: 0.00MB + Engine InnoDBnpw_pmxi_imports: Data: 0.11MB + 
   Index: 0.00MB + Engine InnoDBnpw_pmxi_posts: Data: 0.13MB + Index: 0.00MB + Engine
   InnoDBnpw_pmxi_templates: Data: 0.14MB + Index: 0.00MB + Engine InnoDBnpw_postmark_log:
   Data: 3.52MB + Index: 0.00MB + Engine InnoDBnpw_postmeta: Data: 5.52MB + Index:
   3.03MB + Engine InnoDBnpw_posts: Data: 1.52MB + Index: 0.52MB + Engine InnoDBnpw_redirection_404:
   Data: 0.02MB + Index: 0.05MB + Engine InnoDBnpw_redirection_groups: Data: 0.02MB
   + Index: 0.03MB + Engine InnoDBnpw_redirection_items: Data: 0.02MB + Index: 0.09MB
   + Engine InnoDBnpw_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDBnpw_relevanssi:
   Data: 2.52MB + Index: 4.55MB + Engine InnoDBnpw_relevanssi_log: Data: 0.02MB 
   + Index: 0.03MB + Engine InnoDBnpw_relevanssi_stopwords: Data: 0.02MB + Index:
   0.00MB + Engine InnoDBnpw_taxjar_record_queue: Data: 0.28MB + Index: 0.16MB +
   Engine InnoDBnpw_term_relationships: Data: 0.11MB + Index: 0.08MB + Engine InnoDBnpw_term_taxonomy:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDBnpw_termmeta: Data: 0.06MB + Index:
   0.03MB + Engine InnoDBnpw_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDBnpw_tm_taskmeta:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDBnpw_tm_tasks: Data: 0.02MB + Index:
   0.02MB + Engine InnoDBnpw_trustindex_google_reviews: Data: 0.02MB + Index: 0.00MB
   + Engine InnoDBnpw_usermeta: Data: 1.52MB + Index: 3.03MB + Engine InnoDBnpw_users:
   Data: 0.19MB + Index: 0.22MB + Engine InnoDBnpw_wanc_notice: Data: 0.06MB + Index:
   0.00MB + Engine InnoDBnpw_wc_admin_note_actions: Data: 0.09MB + Index: 0.02MB
   + Engine InnoDBnpw_wc_admin_notes: Data: 0.11MB + Index: 0.00MB + Engine InnoDBnpw_wc_avatax_tax_codes:
   Data: 0.36MB + Index: 0.00MB + Engine InnoDBnpw_wc_category_lookup: Data: 0.02MB
   + Index: 0.00MB + Engine InnoDBnpw_wc_customer_lookup: Data: 0.13MB + Index: 
   0.11MB + Engine InnoDBnpw_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine
   InnoDBnpw_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDBnpw_wc_order_coupon_lookup:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDBnpw_wc_order_operational_data: Data:
   0.02MB + Index: 0.03MB + Engine InnoDBnpw_wc_order_product_lookup: Data: 0.02MB
   + Index: 0.08MB + Engine InnoDBnpw_wc_order_stats: Data: 0.02MB + Index: 0.05MB
   + Engine InnoDBnpw_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine
   InnoDBnpw_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDBnpw_wc_orders_meta:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDBnpw_wc_product_attributes_lookup:
   Data: 0.05MB + Index: 0.02MB + Engine InnoDBnpw_wc_product_download_directories:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_wc_product_meta_lookup: Data:
   0.06MB + Index: 0.11MB + Engine InnoDBnpw_wc_rate_limits: Data: 0.02MB + Index:
   0.02MB + Engine InnoDBnpw_wc_reserved_stock: Data: 0.48MB + Index: 0.00MB + Engine
   InnoDBnpw_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_wc_webhooks:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_wcpdf_invoice_number: Data: 0.02MB
   + Index: 0.00MB + Engine InnoDBnpw_wfFileMods: Data: 7.52MB + Index: 0.00MB +
   Engine InnoDBnpw_wfauditevents: Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_wfblockediplog:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_wfblocks7: Data: 0.02MB + Index:
   0.05MB + Engine InnoDBnpw_wfconfig: Data: 1.52MB + Index: 0.00MB + Engine InnoDBnpw_wfcrawlers:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_wffilechanges: Data: 0.02MB +
   Index: 0.00MB + Engine InnoDBnpw_wffilemods: Data: 7.52MB + Index: 0.00MB + Engine
   InnoDBnpw_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDBnpw_wfhoover: Data:
   0.02MB + Index: 0.02MB + Engine InnoDBnpw_wfissues: Data: 0.02MB + Index: 0.06MB
   + Engine InnoDBnpw_wfknownfilelist: Data: 5.52MB + Index: 0.00MB + Engine InnoDBnpw_wflivetraffichuman:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_wflocs: Data: 0.02MB + Index:
   0.00MB + Engine InnoDBnpw_wflogins: Data: 0.13MB + Index: 0.03MB + Engine InnoDBnpw_wfls_2fa_secrets:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDBnpw_wfls_role_counts: Data: 0.00MB
   + Index: 0.00MB + Engine MEMORYnpw_wfls_settings: Data: 0.02MB + Index: 0.00MB
   + Engine InnoDBnpw_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_wfpendingissues:
   Data: 0.02MB + Index: 0.06MB + Engine InnoDBnpw_wfreversecache: Data: 0.02MB 
   + Index: 0.00MB + Engine InnoDBnpw_wfsecurityevents: Data: 0.08MB + Index: 0.00MB
   + Engine InnoDBnpw_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDBnpw_wfstatus:
   Data: 0.13MB + Index: 0.09MB + Engine InnoDBnpw_wftrafficrates: Data: 0.02MB 
   + Index: 0.00MB + Engine InnoDBnpw_wfwaffailures: Data: 0.02MB + Index: 0.00MB
   + Engine InnoDBnpw_wpc_accesslocks: Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_wpc_login_fails:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDBnpw_wpgb_cache: Data: 0.02MB + Index:
   0.00MB + Engine InnoDBnpw_wpgb_cards: Data: 0.02MB + Index: 0.03MB + Engine InnoDBnpw_wpgb_facets:
   Data: 0.02MB + Index: 0.05MB + Engine InnoDBnpw_wpgb_grids: Data: 0.02MB + Index:
   0.03MB + Engine InnoDBnpw_wpgb_index: Data: 0.02MB + Index: 0.05MB + Engine InnoDBnpw_wpo_404_detector:
   Data: 0.02MB + Index: 0.05MB + Engine InnoDBnpw_yoast_indexable: Data: 0.36MB
   + Index: 0.16MB + Engine InnoDBnpw_yoast_indexable_hierarchy: Data: 0.05MB + 
   Index: 0.05MB + Engine InnoDBnpw_yoast_migrations: Data: 0.02MB + Index: 0.02MB
   + Engine InnoDBnpw_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine 
   InnoDBnpw_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB Post 
   Type Counts
 * acf-field: 3
   acf-field-group: 2acf-ui-options-page: 1attachment: 1073b2bking_custom_field:
   10b2bking_custom_role: 3b2bking_group: 2b2bking_list: 1breakdance_block: 2breakdance_footer:
   1breakdance_header: 2breakdance_template: 13custom_css: 2nav_menu_item: 43page:
   18product: 330revision: 63shop_coupon: 22shop_order: 5shop_order_placehold: 368shop_order_refund:
   206wp_navigation: 1wp_template: 2yaymail_template: 12 Security
 * Secure connection (HTTPS): ✔
   Hide errors from visitors: ✔ Active Plugins (26)
 * Admin Columns Pro: by AdminColumns.com – 6.4.18
   Advanced Custom Fields PRO: by
   WP Engine – 6.4.3B2BKing Core: by WebWizards – 4.9.10B2BKing Pro: by WebWizards–
   5.3.40Breakdance: by Breakdance – 2.3.1Classic Editor: by WordPress Contributors–
   1.6.7KAI Features: by Rick Gregory – 1.0.0Gravity Forms: by Gravity Forms – 2.9.15ActiveCampaign
   Postmark (Official): by Andrew Yates & Matt Gibbs – 1.19.1SpinupWP: by SpinupWP–
   1.8.0Webgility: by Webgility – 411WooCommerce.com Update Manager: by Automattic–
   1.0.3Braintree for WooCommerce Payment Gateway: by WooCommerce – 3.2.9PDF Invoices&
   Packing Slips for WooCommerce: by WP Overnight – 4.6.2WooCommerce: by Automattic–
   10.0.4Yoast SEO: by Team Yoast – 25.6ManageWP – Worker: by GoDaddy – 4.9.24WP
   All Export Pro: by Soflyy – 1.9.10WP All Import Pro: by Soflyy – 4.11.3WP Migrate:
   by WP Engine – 2.7.3WP Sitemap Page: by Tony Archambeau – 1.9.5WP All Export –
   User Export Add-On Pro: by Soflyy – 1.0.10WP All Export – WooCommerce Export 
   Add-On Pro: by Soflyy – 1.0.10WP All Import – WooCommerce Import Add-On Pro: 
   by Soflyy – 4.0.5Sequential Order Numbers for WooCommerce: by WebToffee – 1.7.2YayMail–
   WooCommerce Email Customizer: by YayCommerce – 4.1.1 Inactive Plugins (1)
 * Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.26.20 Dropin
   Plugins ()
 * object-cache.php: SpinupWP Redis Object Cache Drop-In Must Use Plugins (3)
 * ManageWP – Worker Loader: by GoDaddy – 1.0.0
   SpinupWP Debug Log Path: by SpinupWP–
   1.0WP Migrate Compatibility: by Delicious Brains – 1.3 Settings
 * Legacy API Enabled: –
   Force SSL: ✔Currency: USD ($)Currency Position: leftThousand
   Separator: ,Decimal Separator: .Number of Decimals: 2Taxonomies: Product Types:
   external (external)grouped (grouped)simple (simple)variable (variable)
 * Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
   exclude-
   from-search (exclude-from-search)featured (featured)outofstock (outofstock)rated-
   1 (rated-1)rated-2 (rated-2)rated-3 (rated-3)rated-4 (rated-4)rated-5 (rated-
   5)
 * Connected to WooCommerce.com: ✔
   Enforce Approved Product Download Directories:
   ✔HPOS feature enabled: –Order datastore: WC_Order_Data_Store_CPTHPOS data sync
   enabled: –Enabled Features: analyticsmarketplaceorder_attributionsite_visibility_badgeremote_loggingblueprintpoint_of_sale
   Logging
 * Enabled: ✔
   Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2Retention
   period: 30 daysLevel threshold: ErrorLog directory size: 372 KB WC Pages
 * Shop base: #16 – /shop/
   Cart: ❌ Page does not contain the [woocommerce_cart]
   shortcode or the woocommerce/cart block.Checkout: #735 – /checkout/ – Contains
   the woocommerce_checkout shortcodeMy account: ❌ Page does not contain the [woocommerce_my_account]
   shortcode.Terms and conditions: ❌ Page not set Theme
 * Name: Breakdance Zero Theme
   Version: 1.0.0Author URL: [https://breakdance.com/](https://breakdance.com/)
   Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you
   did not build personally we recommend using a child theme. See: How to create
   a child themeTheme type: Classic themeWooCommerce Support: ✔ Templates
 * Overrides: /sites/kaiscissors.biz/files/wp-content/plugins/breakdance/subplugins/
   breakdance-woocommerce/templates/cart/cart-totals.php
   /sites/kaiscissors.biz/
   files/wp-content/plugins/breakdance/subplugins/breakdance-woocommerce/templates/
   cart/mini-cart.php version 7.9.0 is out of date. The core version is 10.0.0/sites/
   kaiscissors.biz/files/wp-content/plugins/breakdance/subplugins/breakdance-woocommerce/
   templates/checkout/form-billing.php/sites/kaiscissors.biz/files/wp-content/plugins/
   breakdance/subplugins/breakdance-woocommerce/templates/checkout/form-checkout.
   php version 3.5.0 is out of date. The core version is 9.4.0/sites/kaiscissors.
   biz/files/wp-content/plugins/breakdance/subplugins/breakdance-woocommerce/templates/
   checkout/form-login.php version 3.8.0 is out of date. The core version is 10.0.0/
   sites/kaiscissors.biz/files/wp-content/plugins/breakdance/subplugins/breakdance-
   woocommerce/templates/checkout/form-shipping.php/sites/kaiscissors.biz/files/
   wp-content/plugins/breakdance/subplugins/breakdance-woocommerce/templates/checkout/
   payment.php version 8.1.0 is out of date. The core version is 9.8.0/sites/kaiscissors.
   biz/files/wp-content/plugins/breakdance/subplugins/breakdance-woocommerce/templates/
   content-product.php version 3.6.0 is out of date. The core version is 9.4.0/sites/
   kaiscissors.biz/files/wp-content/plugins/breakdance/subplugins/breakdance-woocommerce/
   templates/global/form-login.php version 7.1.0 is out of date. The core version
   is 9.2.0/sites/kaiscissors.biz/files/wp-content/plugins/breakdance/subplugins/
   breakdance-woocommerce/templates/global/quantity-input.php version 7.8.0 is out
   of date. The core version is 9.4.0/sites/kaiscissors.biz/files/wp-content/plugins/
   breakdance/subplugins/breakdance-woocommerce/templates/loop/loop-start.php/sites/
   kaiscissors.biz/files/wp-content/plugins/breakdance/subplugins/breakdance-woocommerce/
   templates/loop/rating.phpbreakdance-zero-theme-master/woocommerce/myaccount/dashboard.
   phpbreakdance-zero-theme-master/woocommerce/myaccount/downloads.phpbreakdance-
   zero-theme-master/woocommerce/myaccount/form-add-payment-method.phpbreakdance-
   zero-theme-master/woocommerce/myaccount/form-edit-account.phpbreakdance-zero-
   theme-master/woocommerce/myaccount/form-edit-address.phpbreakdance-zero-theme-
   master/woocommerce/myaccount/form-login.php version 9.7.0 is out of date. The
   core version is 9.9.0breakdance-zero-theme-master/woocommerce/myaccount/form-
   lost-password.phpbreakdance-zero-theme-master/woocommerce/myaccount/form-reset-
   password.phpbreakdance-zero-theme-master/woocommerce/myaccount/lost-password-
   confirmation.phpbreakdance-zero-theme-master/woocommerce/myaccount/my-account.
   phpbreakdance-zero-theme-master/woocommerce/myaccount/my-address.phpbreakdance-
   zero-theme-master/woocommerce/myaccount/my-downloads.phpbreakdance-zero-theme-
   master/woocommerce/myaccount/my-orders.phpbreakdance-zero-theme-master/woocommerce/
   myaccount/navigation.phpbreakdance-zero-theme-master/woocommerce/myaccount/orders.
   phpbreakdance-zero-theme-master/woocommerce/myaccount/payment-methods.phpbreakdance-
   zero-theme-master/woocommerce/myaccount/view-order.php
 * Outdated Templates: ❌
 *     ```wp-block-code
                           Learn how to update                  |
   
   
   
   
                           Clear system status theme info cache
       ```
   
 * Admin
 * Enabled Features: activity-panels
   analyticsproduct-block-editorcouponscore-profilercustomize-
   storecustomer-effort-score-tracksimport-products-taskexperimental-fashion-sample-
   productsshipping-smart-defaultsshipping-setting-tourhomescreenmarketingmobile-
   app-banneronboardingonboarding-taskspattern-toolkit-full-composabilityproduct-
   custom-fieldsremote-inbox-notificationsremote-free-extensionspayment-gateway-
   suggestionsprintfulshipping-label-bannersubscriptionsstore-alertstransient-noticeswoo-
   mobile-welcomewc-pay-promotionwc-pay-welcome-pagelaunch-your-storeadd-to-cart-
   with-options-stepper-layout
 * Disabled Features: product-data-views
   experimental-blocksexperimental-iapi-mini-
   cartexperimental-iapi-runtimecoming-soon-newsletter-templateminified-jsproduct-
   pre-publish-modalsettingsasync-product-editor-category-fieldproduct-editor-template-
   systemuse-wp-horizon
 * Daily Cron: ✔ Next scheduled: 2025-08-11 22:16:45 -07:00
   Options: ✔Notes: 192Onboarding:
   skipped Braintree (Credit Card)
 * Environment: Sandbox
   Tokenization Enabled: –Debug Mode: Off Braintree (PayPal)
 * Environment: Production
   Tokenization Enabled: –Debug Mode: Off Action Scheduler
 * Complete: 159
   Oldest: 2025-07-11 13:26:06 -0700Newest: 2025-08-11 03:16:07 -0700
 * Failed: 5
   Oldest: 2025-03-10 13:52:46 -0700Newest: 2025-08-11 13:06:06 -0700
 * Pending: 3
   Oldest: 2025-08-11 14:41:06 -0700Newest: 2025-09-10 13:06:06 -0700
   Status report information
 * Generated at: 2025-08-11 13:09:37 -07:00
   `
    -  This reply was modified 9 months, 2 weeks ago by [rickg](https://wordpress.org/support/users/sitetherapy-rick/).
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/dev-hooks/#post-18595581)
 * Hi [@sitetherapy-rick](https://wordpress.org/support/users/sitetherapy-rick/),
 * When importing orders programmatically, the `woocommerce_new_order` hook may 
   not always fire as expected. This can prevent sequential order numbers from being
   assigned automatically.
 * You can call the sequential order number function directly in your import code.
 * Option 1- Call the function directly:
 * `// Force sequential order number assignment if ( class_exists( 'Wt_Advanced_Order_Number')){
   $temp_instance = new Wt_Advanced_Order_Number(); $temp_instance->set_sequential_number(
   $post_id ); }`
 * Option 2- Use the hook that works for manual updates:
 * `$order = new WC_Order( $post_id ); $order->calculate_totals(); $order->save();//
   Trigger the sequential order number assignment do_action( 'woocommerce_process_shop_order_meta',
   $post_id, $order );`

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Dev hooks?’ is closed to new replies.

 * ![](https://ps.w.org/wt-woocommerce-sequential-order-numbers/assets/icon-128x128.
   png?rev=2599891)
 * [Sequential Order Number for WooCommerce](https://wordpress.org/plugins/wt-woocommerce-sequential-order-numbers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wt-woocommerce-sequential-order-numbers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wt-woocommerce-sequential-order-numbers/)
 * [Active Topics](https://wordpress.org/support/plugin/wt-woocommerce-sequential-order-numbers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wt-woocommerce-sequential-order-numbers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wt-woocommerce-sequential-order-numbers/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * Last activity: [9 months, 2 weeks ago](https://wordpress.org/support/topic/dev-hooks/#post-18595581)
 * Status: resolved