[wp-trac] [WordPress Trac] #34455: Additional Filters for Press This
WordPress Trac
noreply at wordpress.org
Sun Feb 28 21:06:04 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 cadeyrn):
@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.
Is sideloading from the referenced url (which lead to Press This) possible
on regular post save?
> - `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.
Why would it be repurposing just because some might find other HTML
elements useful as well?
> - `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.
This is not true. I'm using Markdown when writing posts and without this,
I can't do so in Press this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34455#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list