WC_Checkout::check_cart_items
When we process the checkout, lets ensure cart items are rechecked to prevent checkout.
Method of the class: WC_Checkout{}
Hooks from the method
Returns
null. Nothing (null).
Usage
$WC_Checkout = new WC_Checkout(); $WC_Checkout->check_cart_items();
WC_Checkout::check_cart_items() WC Checkout::check cart items code WC 10.5.0
public function check_cart_items() {
/**
* Provides an opportunity to check cart items before checkout. This generally occurs during checkout validation.
*
* @see WC_Checkout::validate_checkout()
* @since 3.0.0 or earlier
*/
do_action( 'woocommerce_check_cart_items' );
}