Opened 3 years ago

Closed 3 years ago

#13607 closed enhancement (duplicate)

Allow display of custom visibility settings

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

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 3 years ago.

Download all attachments as: .zip

Change History (4)

  • Milestone changed from Unassigned to 3.1
  • Cc kevinB added
  • 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.