diff --git a/public/themes/wordplate/functions.php b/public/themes/wordplate/functions.php index 77a8bc3..6856ff1 100644 --- a/public/themes/wordplate/functions.php +++ b/public/themes/wordplate/functions.php @@ -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');