Adding Custom Endpoint
This will be return makan bang
string response in localhost/wp-json/contoh/v1/makan
in method get.
Get params.
Get all params.
Get body from raw json.
If the request has the Content-type: application/json
header set and valid JSON in the body, get_json_params()
will return the parsed JSON body as an associative array.
Last updated