how can i change all messages in wp-admin when i create new item or update

WPPizza – A Restaurant Plugin for WordPress Support User contributions how can i change all messages in wp-admin when i create new item or update

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7055
    foxpc
    Participant

      Hi,
      how can i change all the messages in wp-admin when i create new item or update new item?
      now all messages are from regular “posts”
      like: post create: click here to see post

      i tried to ue:

      add_filter('post_updated_messages', 'wppizza_updated_messages');
      function wppizza_updated_messages($messages) {
      global $post, $post_ID;
      $messages['wppizza'] = array(
      0 => '',
      1 => sprintf(__('Item updated.'), esc_url(get_permalink($post_ID))),
      2 => __('Custom field updated.'),
      3 => __('Custom field deleted.'),
      4 => __('Item updated.'),
      5 => isset($_GET['revision']) ? sprintf(__('Item restored to revision from %s'), wp_post_revision_title((int) $_GET['revision'], false)) : false,
      6 => sprintf(__('Item published.'), esc_url(get_permalink($post_ID))),
      7 => __('Slide saved.'),
      8 => sprintf(__('Item submitted.'), esc_url(add_query_arg('preview', 'true', get_permalink($post_ID)))),
      9 => sprintf(__('Item scheduled for: <strong>%1$s</strong>. '), date_i18n(__('M j, Y @ G:i'), strtotime($post->post_date)), esc_url(get_permalink($post_ID))),
      10 => sprintf(__('Item draft updated.'), esc_url(add_query_arg('preview', 'true', get_permalink($post_ID)))),
      );
      return $messages;
      }

      but this not working on “wppizza”

      #7056
      foxpc
      Participant

        ok this working it was my cache.

        so everybody else that need this solution you can use this code.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘how can i change all messages in wp-admin when i create new item or update’ is closed to new replies.