[wp-trac] [WordPress Trac] #34455: Additional Filters for Press This
WordPress Trac
noreply at wordpress.org
Thu Mar 3 22:12:33 UTC 2016
#34455: Additional Filters for Press This
--------------------------+-----------------------
Reporter: cadeyrn | Owner: kraftbj
Type: defect (bug) | Status: reopened
Priority: high | Milestone: 4.5
Component: Press This | Version: 4.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------
Comment (by cadeyrn):
Replying to [comment:21 azaozz]:
OK, I got it.
The end result can be filtered with `press_this_suggested_html`; however,
the actual content, that is sprint-ed into the 'quote' array element (
`$text` variable within `get_suggested_content` ) can be filtered with the
`press_this_data` filter, called in `merge_or_fetch_data`, so there is no
need for a final filter.
Next time I'll spend more time learning the code and adding documentation
instead of introducing unneeded filters; thank you for your time, @azaozz.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34455#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list