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.
// 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
-
alg_wc_custom_order_numbers
filterapply_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, ) ); -
active_plugins
filterapply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
ts_tracker_admin_email
filterapply_filters( 'ts_tracker_admin_email', get_option( 'admin_email' ) ); -
do_action( "{$this->plugin_short_name}_init_tracker_completed" ); -
apply_filters( "{$this->plugin_short_name}_ts_tracker_data", $data ); -
apply_filters( "{$this->plugin_short_name}_ts_tracker_display_notice", true ); -
apply_filters( 'alg_custom_order_numbers_do_reset_counter_value', $do_reset ); -
do_action( 'con_prefix_suffix_rules_updated', null !== $incoming_rules ? $incoming_rules : $existing_rules, $existing_rules ); -
con_renumerate_orders
filterapply_filters( 'con_renumerate_orders', null ); -
plugin_locale
filterapply_filters( 'plugin_locale', get_locale(), $domain ); -
apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ); -
ts_tracker_last_send_time
filterapply_filters( 'ts_tracker_last_send_time', get_option( 'ts_tracker_last_send', false ) ); -
ts_tracker_opt_out_data
filterapply_filters( 'ts_tracker_opt_out_data', $params ); -
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: