woocommerce_admin_order_date_format

woocommerce_admin_order_date_format

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_admin_order_date_format') is found 1 times:

  • /src/Internal/Admin/Orders/ListTable.php line 1012
    				_x( '%s ago', '%s = human-readable time difference', 'woocommerce' ),
    				human_time_diff( $order->get_date_created()->getTimestamp(), time() )
    			);
    		} else {
    			$show_date = $order->get_date_created()->date_i18n( apply_filters( 'woocommerce_admin_order_date_format', __( 'M j, Y', 'woocommerce' ) ) ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    		}
    		printf(
    			'<time datetime="%1$s" title="%2$s">%3$s</time>',
    			esc_attr( $order->get_date_created()->date( 'c' ) ),
    			esc_html( $order->get_date_created()->date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ) ),
    			esc_html( $show_date )