0 && empty( $post->post_content ) ) { $this->vc_update_meta_setting(); } } /** * Set default setting. * * @since 1.0.13 * @return void */ function vc_default_setting() { global $post; $id = astra_get_post_id(); $vc_active = get_post_meta( $id, '_wpb_vc_js_status', true ); if ( is_singular() && ( has_shortcode( $post->post_content, 'vc_row' ) || 'true' == $vc_active ) ) { $this->vc_update_meta_setting(); } } /** * Force Visual Composer to initialize as "built into the theme". This will hide certain tabs under the Settings->Visual Composer page * * @since 1.0.0 */ function vc_set_as_theme() { if ( function_exists( 'vc_set_as_theme' ) ) { vc_set_as_theme( true ); vc_manager()->disableUpdater( true ); } } } endif; /** * Kicking this off by calling 'get_instance()' method */ Astra_Visual_Composer::get_instance();