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.
Return Return
(bool)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.3.1 | Unknown. |
1.2.0 | Introduced. |