• Resolved Steven

    (@shazahm1hotmailcom)


    Please change this from:

    add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));

    To this:

    add_action('enqueue_block_editor_assets', array($this, 'admin_enqueue_scripts'));

    This way the admin scripts are only enqueued on the Editor pages. This needs done because it throws JS errors on other pages.

    Thanks!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vicky Agravat

    (@vickyagravat)

    Hello Steven,

    Thank you very much for your suggestion.

    I will update the code in next update.

    Plugin Author Vicky Agravat

    (@vickyagravat)

    Hello Steven,

    I have updated the plugin with your suggested change.

    Now, update the plugin to 1.0.7

    If you like the plugin…
    Please, provide your valuable review with enough star ratting.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enqueuing Admin Scripts’ is closed to new replies.