@@ -16,6 +16,7 @@ import { createElement } from '@wordpress/element';
16
16
import { Icon } from '@wordpress/components' ;
17
17
import { dispatch } from '@wordpress/data' ;
18
18
import { addQueryArgs } from '@wordpress/url' ;
19
+ import { layout , plus , postList , category , settings , tool , upload , download } from '@wordpress/icons' ;
19
20
20
21
/**
21
22
* Register admin commands for SCF
@@ -34,7 +35,7 @@ const registerAdminCommands = () => {
34
35
label : __ ( 'Field Groups' , 'secure-custom-fields' ) ,
35
36
url : 'edit.php' ,
36
37
urlArgs : { post_type : 'acf-field-group' } ,
37
- icon : ' layout' ,
38
+ icon : layout ,
38
39
description : __ (
39
40
'SCF: View and manage custom field groups' ,
40
41
'secure-custom-fields'
@@ -51,7 +52,7 @@ const registerAdminCommands = () => {
51
52
label : __ ( 'Create New Field Group' , 'secure-custom-fields' ) ,
52
53
url : 'post-new.php' ,
53
54
urlArgs : { post_type : 'acf-field-group' } ,
54
- icon : ' plus' ,
55
+ icon : plus ,
55
56
description : __ (
56
57
'SCF: Create a new field group to organize custom fields' ,
57
58
'secure-custom-fields'
@@ -69,7 +70,7 @@ const registerAdminCommands = () => {
69
70
label : __ ( 'Post Types' , 'secure-custom-fields' ) ,
70
71
url : 'edit.php' ,
71
72
urlArgs : { post_type : 'acf-post-type' } ,
72
- icon : 'admin-post' ,
73
+ icon : postList ,
73
74
description : __ (
74
75
'SCF: Manage custom post types' ,
75
76
'secure-custom-fields'
@@ -81,7 +82,7 @@ const registerAdminCommands = () => {
81
82
label : __ ( 'Create New Post Type' , 'secure-custom-fields' ) ,
82
83
url : 'post-new.php' ,
83
84
urlArgs : { post_type : 'acf-post-type' } ,
84
- icon : ' plus' ,
85
+ icon : plus ,
85
86
description : __ (
86
87
'SCF: Create a new custom post type' ,
87
88
'secure-custom-fields'
@@ -93,7 +94,7 @@ const registerAdminCommands = () => {
93
94
label : __ ( 'Taxonomies' , 'secure-custom-fields' ) ,
94
95
url : 'edit.php' ,
95
96
urlArgs : { post_type : 'acf-taxonomy' } ,
96
- icon : ' category' ,
97
+ icon : category ,
97
98
description : __ (
98
99
'SCF: Manage custom taxonomies for organizing content' ,
99
100
'secure-custom-fields'
@@ -105,7 +106,7 @@ const registerAdminCommands = () => {
105
106
label : __ ( 'Create New Taxonomy' , 'secure-custom-fields' ) ,
106
107
url : 'post-new.php' ,
107
108
urlArgs : { post_type : 'acf-taxonomy' } ,
108
- icon : ' plus' ,
109
+ icon : plus ,
109
110
description : __ (
110
111
'SCF: Create a new custom taxonomy' ,
111
112
'secure-custom-fields'
@@ -124,7 +125,7 @@ const registerAdminCommands = () => {
124
125
label : __ ( 'Options Pages' , 'secure-custom-fields' ) ,
125
126
url : 'edit.php' ,
126
127
urlArgs : { post_type : 'acf-ui-options-page' } ,
127
- icon : 'admin- settings' ,
128
+ icon : settings ,
128
129
description : __ (
129
130
'SCF: Manage custom options pages for global settings' ,
130
131
'secure-custom-fields'
@@ -136,7 +137,7 @@ const registerAdminCommands = () => {
136
137
label : __ ( 'Create New Options Page' , 'secure-custom-fields' ) ,
137
138
url : 'post-new.php' ,
138
139
urlArgs : { post_type : 'acf-ui-options-page' } ,
139
- icon : ' plus' ,
140
+ icon : plus ,
140
141
description : __ (
141
142
'SCF: Create a new custom options page' ,
142
143
'secure-custom-fields'
@@ -148,7 +149,7 @@ const registerAdminCommands = () => {
148
149
label : __ ( 'SCF Tools' , 'secure-custom-fields' ) ,
149
150
url : 'admin.php' ,
150
151
urlArgs : { page : 'acf-tools' } ,
151
- icon : 'admin-tools' ,
152
+ icon : tool ,
152
153
description : __ (
153
154
'SCF: Access SCF utility tools' ,
154
155
'secure-custom-fields'
@@ -160,7 +161,7 @@ const registerAdminCommands = () => {
160
161
label : __ ( 'Import SCF Data' , 'secure-custom-fields' ) ,
161
162
url : 'admin.php' ,
162
163
urlArgs : { page : 'acf-tools' , tool : 'import' } ,
163
- icon : ' upload' ,
164
+ icon : upload ,
164
165
description : __ (
165
166
'SCF: Import field groups, post types, taxonomies, and options pages' ,
166
167
'secure-custom-fields'
@@ -172,7 +173,7 @@ const registerAdminCommands = () => {
172
173
label : __ ( 'Export SCF Data' , 'secure-custom-fields' ) ,
173
174
url : 'admin.php' ,
174
175
urlArgs : { page : 'acf-tools' , tool : 'export' } ,
175
- icon : ' download' ,
176
+ icon : download ,
176
177
description : __ (
177
178
'SCF: Export field groups, post types, taxonomies, and options pages' ,
178
179
'secure-custom-fields'
0 commit comments