Custom Order Numbers for WooCommerce icon
eCommerce & WooCommerce

Custom Order Numbers for WooCommerce hooks reference

  • By tychesoftwares
  • v2.2.0
  • Updated

Custom Order Numbers for WooCommerce 2.2.0 has 2 actions and 12 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Custom Order Numbers for WooCommerce fires an action
add_action( 'con_prefix_suffix_rules_updated', function( $arg1, $existing_rules ) {
	// Your code runs here.
}, 10, 2 );

// Change a value Custom Order Numbers for WooCommerce is about to use
add_filter( 'alg_wc_custom_order_numbers', function( $sprintf, $arg2, $arg3 ) {
	// Change $sprintf here.
	return $sprintf;
}, 10, 3 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/class-core.php line 556 · used in 9 places
    apply_filters( 'alg_wc_custom_order_numbers', sprintf( '%s%s', do_shortcode( $custom_prefix ), $order_number_meta ), 'value', array( 'order_timestamp' => $order_timestamp, 'order_number_meta' => $order_number_meta, 'order_number_sku' => $sku_new, 'free_order' => $free_order, 'order_object' => $order, ) );
  • includes/class-core.php line 53 · used in 4 places
    apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
  • includes/tyche/components/plugin-deactivation/class-tyche-plugin-deactivation.php line 227 · used in 2 places
    apply_filters( 'ts_tracker_admin_email', get_option( 'admin_email' ) );
  • includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php line 237
    do_action( "{$this->plugin_short_name}_init_tracker_completed" );
  • includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php line 381
    apply_filters( "{$this->plugin_short_name}_ts_tracker_data", $data );
  • includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php line 247
    apply_filters( "{$this->plugin_short_name}_ts_tracker_display_notice", true );
  • includes/class-core.php line 291
    apply_filters( 'alg_custom_order_numbers_do_reset_counter_value', $do_reset );
  • includes/api/class-admin-api-settings.php line 242
    do_action( 'con_prefix_suffix_rules_updated', null !== $incoming_rules ? $incoming_rules : $existing_rules, $existing_rules );
  • includes/api/class-admin-api-settings.php line 171
    apply_filters( 'con_renumerate_orders', null );
  • plugin_locale

    filter
    includes/class-custom-order-numbers.php line 239
    apply_filters( 'plugin_locale', get_locale(), $domain );
  • includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php line 175
    apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) );
  • includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php line 172
    apply_filters( 'ts_tracker_last_send_time', get_option( 'ts_tracker_last_send', false ) );
  • includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php line 202
    apply_filters( 'ts_tracker_opt_out_data', $params );
  • includes/tyche/components/plugin-deactivation/class-tyche-plugin-deactivation.php line 169
    apply_filters( 'tyche_plugin_deactivation_language', 'en' );

Generated from Custom Order Numbers for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: