llms_blocks_is_post_migrated( mixed $post )
Determine if a post is migrated
Parameters Parameters
- $post
-
(mixed) (Required) WP_Post or WP_Post ID.
Return Return
(boolean)
Source Source
File: libraries/lifterlms-blocks/includes/functions-llms-blocks.php
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | function llms_blocks_is_post_migrated( $post ) { $post_id = null; $ret = false; $post = get_post( $post ); if ( $post ) { $post_id = $post ->ID; // Classic editor is being used for this post. if ( llms_blocks_is_classic_enabled_for_post( $post_id ) ) { $ret = false; } else { $ret = llms_parse_bool( get_post_meta( $post_id , '_llms_blocks_migrated' , true ) ); } } return apply_filters( 'llms_blocks_is_post_migrated' , $ret , $post_id ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.3.1 | Introduced. |