Fix conditional for hooking the first two milestones action.

This commit is contained in:
Jeff Stieler 2019-04-02 08:34:22 -06:00
parent 632e4fd09d
commit e6e905919d
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class WC_Admin_Notes_Order_Milestones {
add_action( 'wc_admin_installed', array( $this, 'backfill_last_milestone' ) ); add_action( 'wc_admin_installed', array( $this, 'backfill_last_milestone' ) );
if ( 10 <= $this->get_orders_count() ) { if ( $this->get_orders_count() <= 10 ) {
add_action( 'woocommerce_new_order', array( $this, 'first_two_milestones' ) ); add_action( 'woocommerce_new_order', array( $this, 'first_two_milestones' ) );
} }