Skip to content
Advertisement

Tag: wp-api

Custom Endpoint API based on attribute gutenberg block

Viewed 4 times 0 I need to return all posts that have the value of a specific attribute that is saved in the custom block attributes gutenberg. This value in the query will be according to the endpoint below. http://idinheiro.local/wp-json/idinheiro/v1/blocks-posts/id-here-attribute-gutenberg-block below my callback function. In short, how do I look for this attribute and put it there in get_posts? Register

Advertisement