• Resolved conualfy

    (@conualfy)


    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)
  • Thread Starter conualfy

    (@conualfy)

    My bad, sorry, it works. I was running this code inside a if-then-else and it was not adding the filter.

Viewing 1 replies (of 1 total)
  • The topic ‘Set custom messages for post update’ is closed to new replies.