I would like to add extra js file to a backend when editing or creating a custom post type.
I found pretty good answer to it but it has a flaw, it wont work when editing the custom post type, only on create and archive view.
Thank you :)
|
I would like to add extra js file to a backend when editing or creating a custom post type. I found pretty good answer to it but it has a flaw, it wont work when editing the custom post type, only on create and archive view. Thank you :) |
|||
|
|
|
Here you go:
just change |
|||||||||||
|