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:



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


Romain DORR, Be API.

Change History (4)

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

3 years ago

  • Keywords has-patch added

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

Trac ticket:

#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


thanks for the advice, I redid the PR here.

Romain DORR, Be API

Note: See TracTickets for help on using tickets.