• “post” have add_filter(‘rest_prepare_post’, …);
    “page” have add_filter(‘rest_prepare_page’, …);

    “search” have what?

    I want to add some data,e.g:

    "id": 1170,
        "title": "title1",
        "url": "https://...",
        "type": "post",
        "subtype": "post",
        "thumb": "xxxxxx",
        "time": "xxxxx",
        "author": "xxxxxxxx",

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Adding some data in wp-json/wp/v2/search’ is closed to new replies.