PHP - How to Check if in Cornerstone Editor?

I want to run a script on a page when it is NOT opened in the cornerstone editor. Do you have a function to check if you are in the editor? Something like is_page() or is_single().

Hello @tkulow,

Thanks for posting in! You can use did_action('cs_element_rendering') as your condition.

Kindly let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.