[wp-trac] [WordPress Trac] #34455: Additional Filters for Press This
WordPress Trac
noreply at wordpress.org
Sun Feb 28 20:02:40 UTC 2016
#34455: Additional Filters for Press This
------------------------------+----------------------
Reporter: cadeyrn | Owner: kraftbj
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.5
Component: Press This | Version: 4.2
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+----------------------
Comment (by azaozz):
I'm not sure that any of these filters is particularly useful.
- `press_this_save_post_content` is yet another filter that runs when a
post is saved. There are already a few other filters that can be used to
do exactly the same.
- `press_this_useful_html_elements` runs only when the content '''_is
not_''' passed by the bookmarklet, i.e. most of the time it cannot be
used. As far as I see it can be useful only when repurposing Press This
for other user cases. However that is not supported, and not sure if we
should encourage it.
- `press_this_suggested_content` is very similar to
`press_this_suggested_html` (even the name sounds confusing when comparing
them). It filters the return of `press_this_suggested_html` after it has
been wrapped in HTML tags. Again, only useful if repurposing Press This to
do something that was not intended.
If plugins want to repurpose Press This, they are free to do so. However
this is not the intended use and will probably break when Press This is
updated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34455#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list