Home Blog

rest_validate_request_arg

  • WordPress REST API: Schema & Validation

    In the WordPress REST API, args do the checking for you. Mark a param as required and core answers 400 restmissingcallbackparam before your callback runs. Give it a…