Is there a way to detect if a WordPress page is using Visual Composer?
I have 2 different page templates:
Actually _wpb_vc_js_status
since 4.8 is not correct, because it was not used anymore. The simplest way to check if page is using visual composer - it is check for vc_row
shortcode in content.
$post = get_post();
if ( $post && preg_match( '/vc_row/', $post->post_content ) ) {
// Visual composer works on current page/post
}