Skip to content

Commit

Permalink
Rename wp-json to api (#436)
Browse files Browse the repository at this point in the history
* Rename wp-json to api

* Update public/themes/wordplate/functions.php

* Update public/themes/wordplate/functions.php

---------

Co-authored-by: Vincent Klaiber <vinkla@users.noreply.github.com>
  • Loading branch information
puredazzle and vinkla committed May 3, 2024
1 parent 49c66f8 commit ef888cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/themes/wordplate/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,6 @@

add_filter('wp_mail_from', fn() => env('MAIL_FROM_ADDRESS', 'hello@example.com'));
add_filter('wp_mail_from_name', fn() => env('MAIL_FROM_NAME', 'Example'));

// Rename /wp-json to /api.
add_filter('rest_url_prefix', fn() => 'api');

0 comments on commit ef888cf

Please sign in to comment.