Created
December 29, 2022 14:26
-
-
Save elpuas/bda8bef3dc0c01c6aa69a0ddfa1523ac to your computer and use it in GitHub Desktop.
Register Query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp.blocks.registerBlockVariation( 'core/query', { | |
name: SIMPLE_QUERY, | |
title: 'Simple Query', | |
description: 'Displays a Simple Query', | |
return ( | |
namespace === SIMPLE_QUERY | |
&& query.postType === 'post' | |
); | |
}, | |
icon: 'edit-large', | |
attributes: {} | |
} ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment