[wp-trac] [WordPress Trac] #24726: New filter hook for get_metadata()
WordPress Trac
noreply at wordpress.org
Tue May 19 21:53:52 UTC 2015
#24726: New filter hook for get_metadata()
--------------------------------+------------------------------
Reporter: JD55 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------------+------------------------------
Comment (by jtsternberg):
Updated patch which includes another pre-get filter with the meta-key as a
dynamic portion of the hook name (and only if they passed a meta-key), and
changed the actual value filter name to `"{$meta_type}_metadata_value"`
since its actual purpose is to filter the value. I also removed the
dynamic meta-key from the hook (and instead passed it as a parameter) at
that point since we are not guaranteed to have one.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24726#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list