[wp-trac] [WordPress Trac] #24726: New filter hook for get_metadata()
WordPress Trac
noreply at wordpress.org
Thu Jul 11 14:04:36 UTC 2013
#24726: New filter hook for get_metadata()
-------------------------+-----------------------------
Reporter: JD55 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
The `get_metadata()` function has one filter hook:
`get_{$meta_type}_metadata`. While this filter can be used to override or
short-circuit the return of `get_metadata()`, it can't easily be used to
filter the meta value. In the options API, `get_option()` has two hooks:
`pre_option_$option` and `option_$option`. The `get_{$meta_type}_metadata`
corresponds to the former, but it would be useful to have something
similar to `option_$option` that will filter the actual meta value. Maybe
`get_{$meta_type}_metadata-{$meta_key}`?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24726>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list