LLMS_Blocks_Migrate::check_sales_page( bool $ret, int $post_id )

Don’t remove core template actions when a sales page is enabled and the page is restricted.


Parameters Parameters

$ret

(bool) (Required) Default migration status.

$post_id

(int) (Required) WP_Post ID.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/class-llms-blocks-migrate.php

	public static function check_sales_page( $ret, $post_id ) {

		$page_restricted = llms_page_restricted( $post_id );
		if ( $page_restricted['is_restricted'] ) {
			$sales_page = get_post_meta( $post_id, '_llms_sales_page_content_type', true );
			if ( '' === $sales_page || 'content' === $sales_page ) {
				$ret = false;
			}
		}

		return $ret;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.3.1 Unknown.
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.