-
Notifications
You must be signed in to change notification settings - Fork 1
/
views.php
43 lines (43 loc) · 1.04 KB
/
views.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
return [
'settings' => [
'menu' => [
'submenu' => 'options-general.php',
'title' => 'WP API Idempotence',
'capability' => 'manage_options',
],
'path' => 'settings.twig',
'type' => 'html',
'class' => 'IronBound\WP_API_Idempotence\Admin\SettingsController',
'subviews' => [
'form' => [
'type' => 'form',
'path' => 'settings-form.twig',
'form' => [
'path' => __DIR__ . '/forms/settings.php',
'sources' => [
'applicable_methods' => [
'GET' => 'GET',
'POST' => 'POST',
'PUT' => 'PUT',
'PATCH' => 'PATCH',
'DELETE' => 'DELETE',
],
'key_locations' => [
'header' => __( 'Request Header', 'wp-rest-api-idempotence' ),
'body' => __( 'Request Body', 'wp-rest-api-idempotence' ),
],
],
'storage' => [
'type' => 'options',
'option' => 'wp_api_idempotence'
],
'security' => [
'nonceField' => 'nonce',
'capability' => 'manage_options',
]
]
]
]
]
];