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.


Top ↑

Return Return

(void)


Top ↑

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' );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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