Action
rpress_cart_contents_loaded
Fires after the cart contents have been loaded and filtered.
Runs at the end of RPRESS_Cart::get_contents(), after rpress_cart_contents has been applied. It takes no arguments.
Example#
function my_cart_contents_loaded() {
do_action( 'my_cart_ready' );
}
add_action( 'rpress_cart_contents_loaded', 'my_cart_contents_loaded', 10, 0 );
Notes#
Fires on every get_contents() call. Do not call RPRESS()->cart->get_contents() from a callback, as that triggers this action again and recurses.
Source#
Fired from:
includes/cart/class-rpress-cart.php(line 184), inRPRESS_Cart::get_contents()
See also#
Was this page helpful?
