Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Is Visual Editor active function?

Open dk-wordpress opened this issue 11 years ago • 1 comments

Hello, Team! It is not an issue, just a question, is it possible to know in which editor the page was built, on front-end part? e.g. something like that:

// e.g. in /my-theme/page.php
if( is_unyson_visual_editor() ) {
    // page was built with Visual Editor
} else {
    // page was built with default WordPress editor
}

Thank you so much for your time!

dk-wordpress avatar Nov 14 '15 22:11 dk-wordpress

Hello, https://github.com/ThemeFuse/Unyson-PageBuilder-Extension/blob/master/helpers.php

ghost avatar Nov 15 '15 07:11 ghost