$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>plugins - Detect if you're in the “Frontend Editor” mode in Visual Composer Wordpress|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

plugins - Detect if you're in the “Frontend Editor” mode in Visual Composer Wordpress

matteradmin7PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 6 years ago.

Improve this question

Marketo forms tend to break the Wordpress Frontend Editor.

Now - my thoughts are to detect if I am just displaying the current page or I am in the frontend editor mode. If in frontend editor mode just to replace the normal form output with a placeholder (or just not display the JavaScript that breaks everything).

If somebody has any better suggestion - do not hestitate to!

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 6 years ago.

Improve this question

Marketo forms tend to break the Wordpress Frontend Editor.

Now - my thoughts are to detect if I am just displaying the current page or I am in the frontend editor mode. If in frontend editor mode just to replace the normal form output with a placeholder (or just not display the JavaScript that breaks everything).

If somebody has any better suggestion - do not hestitate to!

Share Improve this question asked Jan 27, 2019 at 16:24 Galit DumitruGalit Dumitru 313 bronze badges 3
  • 2 You will need to ask the visual composer developers, or check it’s documentation. 3rd-party plugins are off-topic here. – Jacob Peattie Commented Jan 27, 2019 at 16:26
  • Their support is not available at this moment... And I'm sure there's a lot of people that used and had this kind of experience because there's a lot of scripts that VC doesn't like. – Galit Dumitru Commented Jan 27, 2019 at 16:27
  • I'm sorry guys but Visual Composer is a widely used plugin. A lot of people don't have the license to open a ticket because they are customizing a premium theme that don't provide a license for it. I don't mean to be rude, but telling me that it's personal - is unprofessional because I'm sure people will be searching for this kind of topic. Hope you have a nice day - cheers. – Galit Dumitru Commented Jan 27, 2019 at 17:37
Add a comment  | 

1 Answer 1

Reset to default 2

So, I've dig in the core of WPBakery Visual Composer and came up with this solution:

function is_vc_build() {
    return function_exists( 'vc_is_inline' ) && vc_is_inline() ? true : false;
}

Hope it will help somebody in future as I spent lots of time on this.

Post a comment

comment list (0)

  1. No comments so far