Support

Account

Home Forums ACF PRO add js to admin – how to check if I'm on the right post/page

Unread

add js to admin – how to check if I'm on the right post/page

  • hello
    I’ve added some js code to the admin like acf.add_action( 'load', function( $el ){....} – it’s some code that I need on some CPT entry page where I’ve some ACF fields

    when editing a however I get some js errors because obviously the custom fields are not on that page – how can I avoid that?

    thank you in advance for your input.

Viewing 1 post (of 1 total)

The topic ‘add js to admin – how to check if I'm on the right post/page’ is closed to new replies.