mirror of
https://ghproxy.net/https://github.com/abhijitb/helix.git
synced 2025-08-27 20:13:02 +08:00
13 lines
378 B
PHP
13 lines
378 B
PHP
<?php
|
|
add_action('rest_api_init', function () {
|
|
register_rest_route('helix/v1', '/settings', [
|
|
'methods' => 'GET',
|
|
'permission_callback' => '__return_true',
|
|
'callback' => function () {
|
|
return [
|
|
'siteTitle' => get_option('blogname'),
|
|
'language' => get_option('WPLANG'),
|
|
];
|
|
}
|
|
]);
|
|
});
|