public/wordpress/wp-content/plugins/wp-courseware/includes/controllers/cart.php
/**
	 * Maybe Set Cart Cookies.
	 *
	 * Will set cart cookies if needed and when possible.
	 *
	 * @since 4.3.0
	 */
Maybe Set Cart Cookies.
Will set cart cookies if needed and when possible.


Maybe Set Cart Cookies . Will set cart cookies if needed and when possible .
public function maybe_set_cart_cookies() {
		if ( ! headers_sent() && did_action( 'wp_loaded' ) ) {
			if ( ! $this->is_empty() ) {
				$this->set_cart_cookies( true );
			} elseif ( isset( $_COOKIE['wpcw_courses_in_cart'] ) ) {
				$this->set_cart_cookies( false );
			}
		}
	}
public function maybe_set_cart_cookies ( ) { if ( ! headers_sent ( ) && did_action ( 'wp_loaded' ) ) { if ( ! $ this -> is_empty ( ) ) { $ this -> set_cart_cookies ( true ) ; } elseif ( isset ( $ _COOKIE [ 'wpcw_courses_in_cart' ] ) ) { $ this -> set_cart_cookies ( false ) ; } } }
Maybe Set Cart Cookies.
Maybe Set Cart Cookies .