Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about the core RESTful HTTP API for accessing WP content and data.
1
vote
Accepted
How to use apiFetch to get author information in Gutenberg properly?
Finally, I found out how to do it.
Just call fetchApi in componentDidMount and then create a new state in your component and add the response to this state when the request is done:
constructor(props …
0
votes
1
answer
2k
views
How to use apiFetch to get author information in Gutenberg properly?
I'm trying to create author info block for posts.
So I created a block and tried to use redux to get author info,
but could get only author id:
const applyWithSelect = withSelect(
(select, props …