Categories
PHP Web WordPress

Making an API endpoint in WordPress using add_rewrite_rule

There are many ways to build an API in WordPress. I personally like to build them against the base URL. If I was building one for this site it might be http://php-built.com/php-built-api/v1/. I like to prefix my API’s to help prevent conflicts. If I was using a framework like Laravel or Slim I might take […]