Astra_PB_Compatibility::maybe_run_pb_compatibility()

Page builder compatibility database migration was added in v1.0.14, This was 2 Years ago as of right now.


Description

After version 1.8.7 we are stopping from running this to avoid execution of unnecessary database queries. This code will be removed alltogether in newer versions as it is not working


Return

(void)


Source

File: inc/theme-update/class-astra-pb-compatibility.php

		public function maybe_run_pb_compatibility() {
			/** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
			$is_compatibility_completed = astra_get_option( '_astra_pb_compatibility_completed', false );

			if ( ! $is_compatibility_completed ) {

				// Theme Updates.
				add_action( 'do_meta_boxes', array( $this, 'page_builder_compatibility' ) );
				add_action( 'wp', array( $this, 'page_builder_compatibility' ), 25 );
			}
		}

Changelog

Changelog
Version Description
2.0.0 Introduced.

User Contributed Notes

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