我想查询一些产品是onsale到今天,这是我的查询args
HEAT OF FORMATION = -25.54241 KCAL/MOL = -106.86944 KJ/MOL
TOTAL ENERGY = -444.38126 EV
ELECTRONIC ENERGY = -840.31531 EV
CORE-CORE REPULSION = 395.93406 EV
GRADIENT NORM = 0.91931 = 0.45965 PER ATOM
DIPOLE = 2.66600 DEBYE POINT GROUP: C2v
NO. OF FILLED LEVELS = 6
IONIZATION POTENTIAL = 10.352991 EV
HOMO LUMO ENERGIES (EV) = -10.353 0.402
MOLECULAR WEIGHT = 30.0262
COSMO AREA = 60.70 SQUARE ANGSTROMS
COSMO VOLUME = 42.52 CUBIC ANGSTROMS
这有什么问题?
答案 0 :(得分:1)
我明白了!
$args = array(
'status' => 'publish',
'limit' => 1,
'sale_price' => 0,
'date_on_sale_to' => date('Y-M-D'),
);
$products = wc_get_products( $args );