Category: Uncategorized

  • How to get all WordPress posts in a Gutenberg Block

    We can retrieve quite a lot of data from the bare Javascript Browser Console if you print this wp.data.select(‘core’) you will get all the availabe methods. wp.data.select(‘core’).getCurrentTheme() will gives you all the header informations about the current theme. If you also run this snippet you will print all the website posts in the console: wp.data.select(‘core’).getEntityRecords(…