I'm having troubles trying to do a hook when post published. I think that the problem is that my WP-Metaboxer plugin creates the meta after publishing post, and I cannot capture the value.
Here is an example:
function post_published_coins_update( $ID, $post ) {
$tipo = get_post_meta( $post->ID, 'tipo');
$coins_value = $tipo;
add_user_meta($post->post_author, 'coins', $coins_value);
}
add_action('publish_post', 'post_published_coins_update', 10, 2);
I've created a metabox that create a post_meta called "tipo", but the hook doesn't access to it, is like if the hook starts before than the meta creates.
Any idea?
Thanks!