Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8604079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:28:52+00:00 2026-06-12T02:28:52+00:00

I have an meta_box in the post creation screen. As soon a user click

  • 0

I have an meta_box in the post creation screen. As soon a user click on a specific category it will be displayed. For saving the information in the meta_box and post title and post content I use the hook post_updated. All is going to save fine in the database — post data in wp_posts and the data in the meta_box into a special created table.

But sometimes the user want to edit this post from this ‘special ‘category. In this case the meta_box with the inserted information should be loaded and be editable. I know that I need to fill in the fields manually, but I need to know which hook is called when the user presses the edit link. An idea was, check for the url and if a parameter edit is found call my edit routine. But it looks like a dirty thing for me.

The codex is not very helpful. I tried the following hooks:

edit post, publish post, save post, wp insert post

But they are called after I pressed the actualize button.

BR,

mybecks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:28:53+00:00Added an answer on June 12, 2026 at 2:28 am

    You don’t have to use any hook for this, you just need to use following lines where you are generating your meta_box html

    global $post;
    

    now you have access the $post object when you are editing

    get_post_meta($post_id, $key, $single);
    

    use above function to get the value of particular meta and set it to your html as required.
    for reading more about get_post_meta, goto http://codex.wordpress.org/Function_Reference/get_post_meta

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, there have some tag links in my main page. click each one, post
I have the following user resource: class UserResource(ModelResource): class Meta: queryset = User.objects.all() resource_name
I seem to have a problem with my meta box saving, not totally sure
I have a post type that lets people add an event, including the usual
I have a declared a custom post type in function.php like this : register_post_type('movies',
i have a code that when I scroll down my page it will load
I am currently working on a form that displays information about a specific product
Hey guys, I have a custom post type, portfolio, and I want to store
I have used the rails will paginate gem for pagination.I have a drop down
I am working on wordpress and I have to add a metabox in case

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.