OK finally found the solution.
After looking in wp_term_taxonomy table, I noticed that taxonomy column describes the taxonomy term for tags – which is actually post_tag, not just ‘tag’.
So, this works:
add_filter('rest_prepare_post_tag', 'wp_api_encode_yoast', 10, 3);
Hopefully someone will be helped by this.
Related Posts:
- Get all tags not just first 10 with wp api 2.0
- WP API: Get posts excluding those with a tag or category name
- Outputting HTML elements through WP-API
- Hiding WordPress REST API v2 endpoints from public viewing
- How do I display a tag cloud under my post that only shows tags from that post?
- WP-REST API not returning all its endpoints, 404 on documented endpoints
- How to loop through JSON data in wordpress WP REST API
- Best way to show map of tagged posts?
- Remove a particular tag name from the tagcloud
- How do I change the output of get_the_tag_list()?
- What are allowedposttags and allowedtags?
- WP REST API V2 – Modifying responses
- List ‘n’ number of posts from a Tag, each with a different class or ID
- When are tags counted? Can it be trigered manually?
- display tag slug as class per link in tag cloud
- wordpress custom endpoint multiple params
- How to add class on term link?
- Change the color of post title on specific tags
- How to use meta data for each tag cloud a
- Exclude a specific tag from the get_the_tags list
- WordPress REST API “rest_authentication_errors” doesn’t work external queries?
- URL scheme to retrieve tag archive by ID
- How to retrieve custom meta term of category taxonomy from WP Rest API?
- Gutenberg Custom Block Getting All Posts
- Query all posts which do not have tags assigned to them
- Tag subscription option in wordpress. How?
- How to allow html5 tag in WordPress
- How to list custom tags too, to wp-list-table table?
- Do not change the order of the tags in the editor
- How to add WP API and JS featured image attachment
- How can I prevent wordpress from creating tag pages?
- how can i add all my tags to tagcloud?
- Blog post : Remove comma between Tag names [closed]
- Why word can’t be displayed in wordpress?
- WP-RestAPI and xml sitemap
- Get all terms if product of that term contains a specific category
- Add Data to Response of WP-JSON Root
- WP API post__not_in is not working
- How do I add a related tags list to a wordpress tag page
- I want a query to list tags
- Remove href tag from wp_postmeta in 34,000 posts?
- Global changing of H Tags
- May I change the order of the tags?
- get posts that doesn’t contain a specific tag
- Remove commas between tags
- How to return tags containing one, two or three exact and specific words using get_tags
- how to output tags that has specific value in slug
- Need sql to remove tags from older posts
- Split function “the_tags” in 2 columns
- Is there any way of making post tags (or custom post type tags) pop up as suggestion as in StackExchange sites?
- How to create WordPress custom end point with multiple parameters?
- How to get post with associated categories and tags names instead of ids with rest api?
- How to use Python to create a Post in WordPress?
- Exclude Specific Tag On Homepage
- update_callback is not working in register_rest_field
- Change Size of P Tag on One Page Template [closed]
- How to add keyword field in custom form programmatically?
- WP REST API and Access-Control-Allow-Origin
- Adding Related Articles to post
- WordPress title as keywords (tags) with excluded stop words
- Add/remove tags on frontend programmatically
- No line breaks in tags in tag cloud
- Custom text for certain tags
- get_edit_tag_link does not return anything
- get an attachment’s media tags or check if it has a media tag?
- Anyway to retrieve a feed of posts that have BOTH tags?
- Top ten tags ala Delicious
- Links from the_tag not working
- Flatten Responses returned via WP REST API via WP_Error for obfuscation
- Is it possible to embed a wordpress tag page on wordpress?
- WordPress REST API – get custom taxonomy category posts
- List latest post for each tag with a category
- Check if user can in javascript
- limit number of tags shown in tag.php
- Remove unwanted fields from WP API response
- WordPress API “code”:”rest_no_route” with Custom Route
- Adding Amchart Interface to WordPress API
- add tags to wordpress post using REST API
- Tag pages with regular editor
- How to remove base tags at the wordpress
- How to select tags in the frontend
- How are special characters encoded in tag-URL?
- Should I edit a user meta field with PUT, PATCH, or POST and WP::Editable
- Open graph ‘image’ content appears empty on debugger and filled in web source
- Is there a way to change the Tag selector from text input to checkmarks?
- WP-API + JS Backbone client – how to update post meta
- Neverending tag problem
- Exclude Tags by Array
- Create another TAG widget for posts
- Need to display tag group as first name, last name but sort on last name
- Assign tags records that have a keyword
- HTML5 Summary tag in editor
- How to retrieve the post_id of a tag page?
- How can i get tag without />?
- How to add tags to identify custom post types in archives?
- See when a tag was first added
- API request forbidden when requesting from same domain
- How to submit a button automatically after every scheduled hours?
- How can I enforce user to use Application password to generate JWT token? [closed]
- wp_tag_cloud: list only general tags associated with a custom taxonomy tag