LLMS_Beaver_Builder_Migrate::maybe_migrate_post()
Migrate posts created prior to the elementor updates to have default LifterLMS widgets.
Return Return
(void)
Source Source
File: includes/class-llms-beaver-builder-migrate.php
public function maybe_migrate_post() {
global $post;
if ( ! class_exists( 'FLBuilderModel' ) || ! method_exists( 'FLBuilderModel', 'is_builder_active' ) || ! FLBuilderModel::is_builder_active() ) {
return;
}
if ( ! $post ) {
return;
}
if ( ! $this->is_migratable_post_type( $post->ID ) ) {
return;
}
if ( ! $this->should_migrate_post( $post->ID ) ) {
return;
}
$this->add_template_to_post();
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 8.0.0 | Introduced. |