Or should I use different hook? Mainly I’m trying to perform some actions only when in admin and only for some of custom posts.
Leave a Reply
You must be logged in to post a comment.
Or should I use different hook? Mainly I’m trying to perform some actions only when in admin and only for some of custom posts.
You must be logged in to post a comment.
This method is an easy one:
Another:
And a complex one:
Here is one function what you can use it with no problems.
I made it to be flexibile, fast and accurate. You can expand it by your needs.