0

I need to customize the "post edit page", for a custom post_type, but to keep things simple let's say it's on the post_type post for now.

When the post status is published, I need to run a PHP script that fetches some data from my database, based on the post_id of the current post.

Question:
Where do I add this script??

Thanks..

enter image description here

2
  • Search for add_meta_box(). This function is the key to add custom areas to the edit screen and inside this can you handle your custom requirements.
    – bueltge
    Commented Jul 3, 2015 at 13:03
  • Was only short, no specific help for you. But if you like, below is the short answer.
    – bueltge
    Commented Jul 3, 2015 at 13:09

1 Answer 1

1

Search for add_meta_box(). This function is the key to add custom areas to the edit screen and inside this can you handle your custom requirements.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.