Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#51694 closed feature request (reported-upstream)

Add a hook to change the parameters of the Gutenberg Latest Posts block

Reported by: romain-d's profile romain-d Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

Hello,

it would be interesting to have a hook to change the request parameters for the Gutenberg Latests Posts block.

Best,

Romain DORR, Be API.

Change History (4)

This ticket was mentioned in PR #680 on WordPress/wordpress-develop by romain-d.


3 years ago
#1

  • Keywords has-patch added

Add a hook to changes arguments of Gutenberg latests posts block query

Trac ticket: https://core.trac.wordpress.org/ticket/51694

#2 @noisysocks
3 years ago

  • Component changed from General to Editor
  • Keywords has-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Welcome @romain-d!

I think this is a really good idea.

Since src/wp-includes/blocks/latest-posts.php is automatically copied from the @wordpress/block-library npm dependency at build time, your changes here will be clobbered when grunt is next ran.

You will need to make this change by opening a PR in the Gutenberg repository instead. The relevant file is at packages/block-library/src/latest-posts/index.php.

#3 @swissspidy
3 years ago

  • Resolution changed from invalid to reported-upstream

#4 @romain-d
3 years ago

Hi,

thanks for the advice, I redid the PR here.

https://github.com/WordPress/gutenberg/pull/26628

Best,
Romain DORR, Be API

Note: See TracTickets for help on using tickets.