If I change the canonical url of page, cornerstone wont work in preview mode, and I get the error “Uh oh! An unidentifiable error is preventing the live preview from loading. Switching to Skeleton Mode” .
I’m using the standard wordpress filter get_canonical_url (https://developer.wordpress.org/reference/hooks/get_canonical_url/)
Is there a way to know that cornerstone is active and then disable this filter?
I’m looking for something like If (!is_cornerstone_active() ) {get_canonical_url (...) }
Does such a function exist for cornerstone or is there some other way to know that the user is editing a page / post?
I’ve tried is_admin() but that doesn’t work when editing cornerstone.
Thanks in advance
