• Resolved formless

    (@formless)


    Thank you for your great plugin, first!

    I get this error below on Windows10 & ie11 in any post-new.php screen.

    blocks-deactivate.js (6,52)

    Is it a bug or designed?

    Also, I wanna know how to remove unused blocks of UAG programmatically.
    For now, I am using 2 methods at once.

    1. Using ‘pre_option__uagb_blocks’ hook to override plugin setting by PHP.
    2. Using ‘wp.blocks.unregisterBlockType()’ to unregister blocks by JS.

    Environment:
    WP 5.2 latest
    UAG 1.13.6

    Thanks in Advance.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hey @formless ,

    Thank you for reaching us out. I checked and I see this – https://share.getcloudapp.com/DOuGdEde
    Am I missing something? Can you check if you have any other plugin installed that is causing this issue?

    UAG has an inbuilt option to deactivate UAG blocks from backend – Settings > UAG. You might not need to add any extra code here.

    I hope that helps you.

    Regards,
    Vrunda Kansara

    Thread Starter formless

    (@formless)

    Dear Team Brainstorm Force (@brainstormteam)

    Thank you for your proof!
    I’ll check my environment again.

    > UAG has an inbuilt option to deactivate UAG blocks from backend – Settings > UAG. You might not need to add any extra code here.

    I’m using UAG in multi-site WP, and I wanna deactivate some blocks of UAG for sub-sites as a default state. And I am hiding UAG menu for sub site owners.
    Than’s why I wanna know programmatical solution for the deactivation.

    Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hey @formless ,

    The UAG setting page is registered on each multisite. You might want to deactivate the blocks from each website.

    Also, if you want to do it programmatically, we have used the 2nd method to deregister the blocks, i.e. wp.blocks.unregisterBlockType().

    I hope that helps.

    Regards,
    Vrunda Kansara

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JS error on ie11’ is closed to new replies.