Tagged Questions
-1
votes
1answer
25 views
What do the numbers mean at the end of add_action('save_post')…?
I've seen on a few tutorials that there are numbers at the end of the call to save Custom Fields/Meta Boxes on the save_post hook. For example, in the WordPress Codex it gives the following example:
...
2
votes
2answers
1k views
Why is `add_meta_box` not working?
I'm trying to add some meta fields to a WPSC product using the following code:
/**
* data callback
*/
function abc_callback($object, $box)
{
echo 'callback executed!';
}
/**
* add custom ...
0
votes
1answer
456 views
prevent post submission
I'm using a meta-box for custom post type. I have three problems:
WP seems to run the function that I attached to the "save_post" action, every time a new post is opened for editing or reloaded. Is ...
2
votes
2answers
544 views
Why can't I hook into save_posts after admin_init?
I'm trying to hook into the "save_post" action from an AJAX callback in my plugin, but it doesn't seem to work. In fact, hooking into "save_posts" only seems to work from a few key action execution ...
0
votes
2answers
455 views
How can I recover the post ID earlier in the WP admin hook action “firing” sequence?
Hopefully this question will make sense, and I will apologise now for my inexperience in WP and PHP, in case I am making a full-blown newbie error :o)
OK... I am creating a WP plugin based around ...