Set custom messages for post update
-
Hello!
I’m trying to edit the messages for the normal post update 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!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Set custom messages for post update’ is closed to new replies.