This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

PHP Conditinal Check While on Live Editor Mode.

9 years ago · Last reply by Alex S 9 years ago

Hello there,

I would like to display an informative content merely on the page builder live editor mode. Is there any PHP conditional check I can use?

Regards,
Kharis

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 9 years, 1 month ago

    Hi Kharis,

    Yes, but in a semi-indirect manner. You need to check for the siteorigin_panels_live_editor query in the URL. So something like this:

    if( !empty( $_GET['siteorigin_panels_live_editor'] ) ) {
        // Live Editor is active, run relevant code here
    }

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread