Disable custom shortcode from appearing in the builder when editing post

Posted in: Newspaper
Post count: 18

Hello, I have a custom shortcode that doesn’t work well with TagDiv Builder, I want to disable it programmatically on the Builder Edit page.
I tried something like:

if($_GET['td_action'] !== 'tdc'){
return;
}

or

if(get_query_var('td_action')){
return;
}

but it doesn’t work. Could you please suggest what can I use in my function php to check when the tagdiv builder is loading?

Post count: 27744

Hi,

Unfortunately, you can’t turn off a custom shortcode when you edit the post.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.