WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#13607 closed enhancement (duplicate)

Allow display of custom visibility settings

Reported by: mitchoyoshitaka Owned by:
Milestone: Priority: low
Severity: minor Version: 3.0
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Right now the post_status setting on a post is translated into a "visibility" value when the edit post screen is set up. There is no way to interact with custom post_status values.

A first step towards this would be to allow custom mappings of post_status (and other information) to custom visibility values (patch supplied). Saving custom values can be handled using the wp_insert_post_data filter.

Ultimately, a way to swap out the div#visibility printing code would be ideal, but for my current application I could just as well use some after-load javascript to make this happen, given the correct visibility value being set in #hidden-post-visibility.

Attachments (1)

13607.diff (1.5 KB) - added by mitchoyoshitaka 4 years ago.

Download all attachments as: .zip

Change History (4)

mitchoyoshitaka4 years ago

comment:1 ocean904 years ago

  • Milestone changed from Unassigned to 3.1

comment:2 kevinB4 years ago

  • Cc kevinB added

comment:3 nacin3 years ago

  • Milestone Awaiting Triage deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate #12706, #12567.

Note: See TracTickets for help on using tickets.