[wp-trac] [WordPress Trac] #54394: Add functions for required fields indicator and message
WordPress Trac
noreply at wordpress.org
Tue Aug 16 07:57:43 UTC 2022
#54394: Add functions for required fields indicator and message
-----------------------------+----------------------------
Reporter: sabernhardt | Owner: audrasjb
Type: feature request | Status: reopened
Priority: normal | Milestone: 6.1
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: accessibility
-----------------------------+----------------------------
Comment (by audrasjb):
Thank you for the patch @kebbet!
I think we can probably just provide one hook to filter the HTML content.
In my opinion, `wp_required_field_indicator` and
`wp_required_field_message` should be more than enough since
`wp_required_field_indicator` allows developer to change the glyph.
Also, there's a typo in one filter name, I commented in the PR :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54394#comment:54>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list