[wp-trac] [WordPress Trac] #34455: Additional Filters for Press This

WordPress Trac noreply at wordpress.org
Mon Oct 26 16:46:16 UTC 2015


#34455: Additional Filters for Press This
-----------------------------+-----------------------------
 Reporter:  cadeyrn          |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Press This       |    Version:  4.3.1
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 I've added 3 filters for the Press This class:

 1. 'press_this_save_post_content'
 Applied right after the side_load_images in order to allow potential side
 loads of other types of media.
 Example use case: side load non-image media, such as audio or video.

 2. 'press_this_useful_html_elements'
 Allows filtering of currently hardcoded array of HTML elements allowed in
 fetch_source_html step for special cases where additional HTML elements
 need to be kept.
 Example use case: HTML5 elements, such as amp-img, that someone wants to
 pull in.

 3. 'press_this_suggested_content'
 A filter for the content right before it's passed to the editor and
 presented to the user.
 Example use case is when someone stored posts in a different, non-HTML
 format, such as Markdown, this is essential.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34455>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list