astra_block_based_legacy_setup()

Check if existing setup is live with old block editor compatibilities.


Description


Return

(bool) true|false.


Source

File: inc/core/common-functions.php

function astra_block_based_legacy_setup() {
	$astra_settings = get_option( ASTRA_THEME_SETTINGS );
	$legacy_setup   = ( isset( $astra_settings['blocks-legacy-setup'] ) && isset( $astra_settings['wp-blocks-ui'] ) && 'legacy' === $astra_settings['wp-blocks-ui'] ) ? true : false;
	return $legacy_setup;
}


User Contributed Notes

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