Skip to content

Instantly share code, notes, and snippets.

View silvaitamar's full-sized avatar
🤝

Itamar Silva silvaitamar

🤝
View GitHub Profile
@webprom
webprom / filters.php
Created October 23, 2021 07:17 — forked from dkjensen/filters.php
WordPress Gutenberg Query Loop View More AJAX
<?php
/**
* Add data attributes to the query block to describe the block query.
*
* @param string $block_content Default query content.
* @param array $block Parsed block.
* @return string
*/
function query_render_block( $block_content, $block ) {
if ( 'core/query' === $block['blockName'] ) {