[wp-trac] [WordPress Trac] #62000: Proposal: Set `show_in_rest` to `true` by default when label argument is defined
WordPress Trac
noreply at wordpress.org
Fri Sep 6 12:47:34 UTC 2024
#62000: Proposal: Set `show_in_rest` to `true` by default when label argument is
defined
--------------------------------+-----------------------------
Reporter: santosguillamot | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------------+-----------------------------
If this other ticket to add a label argument goes forward, it opens the
possibility of setting the show_in_rest argument to true by default when
the new potential label argument is defined. With the introduction of a
new human-readable argument, which hasn't been used before, it could make
sense to expose it automatically in the REST API.
While working on block bindings, part of the feedback received is that
people need to remember to set `show_in_rest` to true.
Basically, these are the use cases:
- If `show_in_rest` is defined, that value is always respected.
- No label and no `show_in_rest`: It keeps working as before and uses
`show_in_rest` false, which is the default. This is a pretty common use
case right now.
- Defined label and no `show_in_rest`: It sets `show_in_rest` to true.
This would be the change introduced.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62000>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list