LLMS_Beaver_Builder_Migrate::maybe_update_migration_status( int $post_id, bool $publish )
Update post meta data to signal status of the editor migration.
Parameters Parameters
- $post_id
-
(int) (Required) WP_Post ID.
- $publish
-
(bool) (Required) Whether or not the post is being published.
Return Return
(void)
Source Source
File: includes/class-llms-beaver-builder-migrate.php
public function maybe_update_migration_status( $post_id, $publish ) {
if ( ! $publish ) {
return;
}
if ( ! $this->is_migratable_post_type( $post_id ) ) {
return;
}
if ( llms_parse_bool( get_post_meta( $post_id, '_llms_beaver_builder_migrated', true ) ) ) {
return;
}
update_post_meta( $post_id, '_llms_beaver_builder_migrated', 'yes' );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 8.0.0 | Introduced. |