_is_wcf_checkout_type()

Check if page is cartflow checkout.


Return

(bool)


Source

File: classes/class-cartflows-functions.php

function _is_wcf_checkout_type() {

	if ( wcf()->utils->is_step_post_type() ) {

		global $post;

		if ( 'checkout' === get_post_meta( $post->ID, 'wcf-step-type', true ) ) {

			return true;
		}
	}

	return false;
}


Changelog

Changelog
Version Description
1.0.0 Introduced.