Home Blog

register_rest_route args

  • 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…