SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2011
    Posts
    180
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rename "draft" status to "rejected"?

    How can i rename "draft" status to a custom status, let's say "rejected". What file should i look into. I am interested because my site is using wordpress and it's like an article directory, and i want my contributors to see instead of "draft" , post rejected or rejected. Where can i edit this?

  2. #2
    SitePoint Member
    Join Date
    Dec 2003
    Location
    Manchester UK
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not entirely sure how to do it, but in Wordpress 3.0+, you can use register_post_status to create a "rejected" post status.

    http://codex.wordpress.org/Function_...er_post_status

    So as well as "Draft", you will have a "rejected" post status. Which is probably a better way to do it
    Hi! I'm Rhys Wynne and I wrote bbPress Complete
    Author+ Premium Wordpress Plugin - Use Code FORUM10 for 10% Off!
    WP Email Capture - Build Your List From Inside Wordpress
    Follow Me on Twitter

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2011
    Posts
    180
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the link rhyswynne. I did manage to do a different thing, located Draft Status from the files from the folder wp-admin/includes: press-this.php, ajax-actions.php and template.php, and replaced on, can't remember the lines, the "Draft" word.

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,426
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    Hacking core files works, but depending on how many sites you have and how often you update, repeatedly editing and uploading the files can get old fast.

    Eventually you may find that the time it would take to write some code would be a lot less than the accumulated hacking time.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •