Astra_Addon_Theme_Builder::show_theme_builder_notice()

Determines which notice to show for Site Builder.


Description


Return

(string) The required plugin name to show install notice for.


Source

File: addons/advanced-hooks/classes/class-astra-addon-theme-builder.php

		public function show_theme_builder_notice() {
			$is_uagb_installed      = defined( 'UAGB_VER' );
			$is_spectra_pro         = defined( 'SPECTRA_PRO_VER' );
			$is_elementor_installed = defined( 'ELEMENTOR_VERSION' );
			$is_uael_installed      = defined( 'UAEL_VER' );

			if ( $is_uagb_installed && ! $is_spectra_pro ) {
				return 'spectra';
			} elseif ( $is_elementor_installed && ! $is_uael_installed ) {
				return 'uae_pro';
			} else {
				return '';
			}
		}

Changelog

Changelog
Version Description
4.5.0 Introduced.


User Contributed Notes

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