Fix conditional for hooking the first two milestones action.
This commit is contained in:
parent
632e4fd09d
commit
e6e905919d
|
@ -100,7 +100,7 @@ class WC_Admin_Notes_Order_Milestones {
|
|||
|
||||
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' ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue