In Gutenberg, one can use the
getEntityRecord selector to get the data of a term of a specific taxonomy by its term id:
// Get the category term with term id = 25 const term = useSelect( ( select ) => select('core').getEntityRecord( 'taxonomy', 'category', 25 ) );
My question is, is there a way to get the data of a specific term by using the term slug instead of the term id? If so, how?