Hi
Hi cant find any info on how to use the new "post_updated_messages" in my post_type, anyone?
thank you // johannes
Hi
Hi cant find any info on how to use the new "post_updated_messages" in my post_type, anyone?
thank you // johannes
Check the Example at the bottom of the register_post_type Codex page. It provides a good example for the post type itself plus Messages and Help.
http://codex.wordpress.org/Function_Reference/register_post_type
I’m trying to edit the messages for the normal post but it doesn’t seem to work. I’m using this code in functions.php:
add_filter(‘post_updated_messages’, ‘my_updated_messages’);
function my_updated_messages( $messages ) {
global $post, $post_ID;
$messages["post"][8] = ‘Message to be aproved in the following 24 hours.’;
return $messages;
}
Is there a mistake I don’t see or how could I just edit one of the messages?
Thanks!
This topic has been closed to new replies.