Press This

Përshkrim

Press This është një mjet i vockël që ju lejon të merrni copëza në Internet dhe të krijoni me lehtësi postime të reja.
Do t’ju lejojë madje të zgjidhni figura dhe video të përfshira te faqja dhe t’i përdorni ato në postimin tuaj.
Përdoreni Press This si një rrugë të shpejtë dhe të lehtë për të nxjerrë në pah një tjetër faqe në 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.

New Features:

  • Gutenberg Block Editor – Full block editor integration for a consistent WordPress editing experience
  • Smart Post Format Suggestions – Automatically suggests Video, Quote, or Link formats based on content
  • Enhanced Content Extraction – Improved scraping with JSON-LD structured data support
  • Client-Side Only Scraping – All content extraction happens in your browser for better privacy and security
  • Featured Image Support – Set any scraped image as your post’s featured image
  • Improved Media Grid – Better thumbnail display with support for video and audio embeds

Filters for Developers

Press This 2.0 includes new filters for customization:

  • press_this_allowed_blocks – Customize which blocks are available in the editor
  • press_this_post_format_suggestion – Modify the auto-suggested post format

See the Developer Documentation section below for details.

Dhënie ndihmese

Të meta dhe kërkesa PR mund të parashtrohen përmes https://github.com/WordPress/press-this .

Developer Documentation

New Hooks and Filters in 2.0

press_this_allowed_blocks

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

press_this_post_format_suggestion

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 URL
s – Selected text
t – 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 behavior
  • press_this_save_post – Filter post data before saving
  • press_this_save_redirect – Filter redirect URL after save
  • enable_press_this_media_discovery – Toggle media scraping
  • press_this_data – Filter the complete scraped data array
  • press_this_suggested_html – Filter default content templates
  • shortcut_link – Customize the bookmarklet URL

Historik

WordPress-i, që në fillimet e veta, përmbante njëfarë mënyre për të sjellë copëza nga sajte të tjerë dhe për t’i postuar më vete.

“Press It” origjinal qe hequr nga WordPress 2.5 dhe te 2.6 u shtua një “Press This”. Rrojti pak a shumë i pandryshuar deri me WordPress 4.2, pas të cilit, “Press This” u rifreskua plotësisht.

Me WordPress 4.9, Press This u nxor si një “shtojcë kanonike” –një shtojcë zyrtare prej WordPress.org, që kështu sajtet që duan ta përdorin, të munden ta përdorin, dhe duke hequr nga Baza funksione me përdorim të rrallë. Më herët kjo kryhej përmes Importuesve.

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.

Foto ekrani

Instalim

  1. Instalojeni shtojcën përmes pultit tuaj wp-admin, përmes Shtojca->Shtoni të Re, si normalisht.
  2. Për hapa shtesë instalimi, viizitoni faqen e Mjeteve të wp-admin-it.

PBR

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.

Shqyrtime

22 Korrik, 2022
J’adore cette fonctionnalité de WP, pourquoi s’en passer si on partage des liens sur son site!?!?
29 Tetor, 2021
If you don’t have the scriptlet bookmarked already this plugin is WORTHLESS because there is literally NO PLACE to get the code for the bookmark ANYWHERE.
Lexojini krejt 25 shqyrtimet

Kontribues & Zhvillues

“Press This” është software me burim të hapur. Në këtë shtojcë kanë dhënë ndihmesë personat vijues.

Kontribues

“Press This” është përkthyer në 24 gjuhë. Faleminderit përkthyesve për ndihmesën e tyre.

Përkthejeni “Press This” në gjuhën tuaj.

Ju intereson zhvillimi?

Shfletoni kodin, shkarkoni depon SVN, ose pajtohuni përmes RSS-je te regjistri i zhvillimeve.

Regjistër ndryshimesh

2.0.1

  • New: Gutenberg block editor replaces TinyMCE for modern editing experience
  • New: Smart post format auto-suggestion based on content type
  • New: press_this_allowed_blocks filter for customizing available blocks
  • New: press_this_post_format_suggestion filter for customizing format suggestions
  • New: JSON-LD structured data extraction for better content discovery
  • New: Open Graph video metadata extraction for improved embed detection
  • New: Featured image selection from scraped images
  • New: Alternate canonical URL detection via hreflang
  • Improved: Client-side only content extraction (removed server-side scraping)
  • Improved: Media grid with video/audio type indicators
  • Improved: Bookmarklet version detection with upgrade prompts
  • Improved: Title extraction now checks JSON-LD headline
  • Improved: Description extraction now checks JSON-LD description
  • Compatibility: All 1.x hooks and filters preserved
  • Compatibility: Legacy bookmarklet URL format continues to work
  • Requires: WordPress 6.9 or higher
  • Requires: PHP 7.4 or higher

1.1.2

  • Ndreq stilin e klasës .press-this .modal-close (falënderime për https://github.com/crishnakh)
  • Testuar me versioni deri te 6.7.1

1.1.1

  • Ndreq një problem me paketimin e shtojcës për SVN.

1.1.0

  • Rikthen funksionin e bookmarklet-it që më herët gjendej te WordPress 4.8 dhe versione më të hershëm.

1.0

  • Hedhja fillestare në qarkullim si një shtojcë. Më parë qe pjesë e vetë WordPress-it.