Press This is a little tool that lets you grab bits of the web and create new posts with ease. It will even allow you to choose from images or videos included on the page and use them in your post. Use Press This as a quick and lightweight way to highlight another page on the web.
=== Press This ===
Contributors: kraftbj, wordpressdotorg
Donate link: http://wordpressfoundation.org/donate/
Tags: post, quick-post, photo-post, bookmarklet, gutenberg
Requires at least: 6.9
Tested up to: 7.0
Stable tag: 2.0.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Posting images, links, and cat gifs will never be the same.
== Description ==
Press This is a little tool that lets you grab bits of the web and create new posts with ease.
It will even allow you to choose from images or videos included on the page and use them in your post.
Use Press This as a quick and lightweight way to highlight another page on the web.
= Version 2.0 - Gutenberg Block Editor =
Press This 2.0 brings the modern WordPress block editor experience to the bookmarklet popup. You can now compose posts using familiar blocks like Paragraph, Heading, Image, Quote, List, and Embed.
undefinedNew Features:undefined
= Filters for Developers =
Press This 2.0 includes new filters for customization:
press_this_allowed_blocks - Customize which blocks are available in the editorpress_this_post_format_suggestion - Modify the auto-suggested post formatSee the Developer Documentation section below for details.
== Contributing ==
Bugs and PRs can be submitted via https://github.com/WordPress/press-this .
== Installation ==
== Frequently Asked Questions ==
= Is Press This compatible with my existing bookmarklet? =
Yes! Existing bookmarklets from version 1.x will continue to work. However, we recommend updating your bookmarklet to get the enhanced features of version 2.0. An upgrade prompt will appear when using an older bookmarklet.
= Which blocks are available in Press This? =
By default, Press This includes: Paragraph, Heading, Image, Quote, List, and Embed blocks. Developers can customize this using the press_this_allowed_blocks filter.
= Can I still use the full WordPress editor? =
Absolutely! Click the “Standard Editor” option in the publish dropdown to save your draft and continue editing in the full WordPress block editor.
== Developer Documentation ==
= New Hooks and Filters in 2.0 =
undefinedpress_this_allowed_blocksundefined
Customize which blocks are available in the Press This editor.
`
add_filter( ‘press_this_allowed_blocks’, function( $blocks ) {
// Add the gallery block
$blocks[] = ‘core/gallery’;
// Remove the embed block
$blocks = array_filter( $blocks, function( $block ) {
return $block !== 'core/embed';
} );
return $blocks;
} );
`
Default blocks: core/paragraph, core/heading, core/image, core/quote, core/list, core/list-item, core/embed
undefinedpress_this_post_format_suggestionundefined
Modify or override the auto-suggested post format based on content.
`
add_filter( ‘press_this_post_format_suggestion’, function( $suggested_format, $data ) {
// If the URL contains ‘podcast’, suggest audio format
if ( ! empty( $data[‘u’] ) && strpos( $data[‘u’], ‘podcast’ ) !== false ) {
return ‘audio’;
}
return $suggested_format;
}, 10, 2 );
`
The $data array contains scraped content including:
u - Source URLs - Selected textt - Page title_images - Array of image URLs_embeds - Array of embed URLs_meta - Meta tag data_jsonld - JSON-LD structured data= Preserved Hooks from 1.x =
All existing hooks continue to work:
press_this_redirect_in_parent - Control post-save redirect behaviorpress_this_save_post - Filter post data before savingpress_this_save_redirect - Filter redirect URL after saveenable_press_this_media_discovery - Toggle media scrapingpress_this_data - Filter the complete scraped data arraypress_this_suggested_html - Filter default content templatesshortcut_link - Customize the bookmarklet URL== Upgrade Notice ==
= 2.0.2 =
Bug fixes, new keyboard shortcuts, and undo/redo support.
= 2.0.1 =
Major update: Gutenberg block editor integration, enhanced content extraction, new developer hooks. Backward compatible with existing bookmarklets.
= 1.1.2 =
Fixes styling issues and bumps tested version.
= 1.1.1 =
Restores bookmarklet functionality.
== Changelog ==
= 2.0.2 =
= 2.0.1 =
press_this_allowed_blocks filter for customizing available blockspress_this_post_format_suggestion filter for customizing format suggestions= 1.1.2 =
= 1.1.1 =
= 1.1.0 =
= 1.0 =
== History ==
WordPress, from the earliest days, included some way to bring in snippets from other websites for you to post on your own.
The original “Press It” was removed from WordPress 2.5 and a new “Press This” added in 2.6. It existed pretty much unchanged until WordPress 4.2, which completely refreshed Press This.
In WordPress 4.9, Press This was spun out to a “canonical plugin” – an official plugin from WordPress.org so sites who wanted to use it could, but streamline more niche functionality out of Core. This was previously done with the Importers.
In version 2.0, Press This was modernized to use the Gutenberg block editor, bringing it in line with the modern WordPress editing experience while maintaining backward compatibility with existing installations.
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.