woocommerce_admin_sales_record_milestone_enabled

woocommerce_admin_sales_record_milestone_enabled

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_admin_sales_record_milestone_enabled') is found 1 times:

  • /src/Internal/Admin/Notes/NewSalesRecord.php line 69
    		 * @since 3.7.0
    		 *
    		 * @param boolean default true
    		 */
    		$sales_record_notes_enabled = apply_filters( 'woocommerce_admin_sales_record_milestone_enabled', true );
    
    		if ( ! $sales_record_notes_enabled ) {
    			return;
    		}
    
    		$yesterday = gmdate( 'Y-m-d', current_time( 'timestamp', 0 ) - DAY_IN_SECONDS );