File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ const PaymentGatewaySuggestions = lazy( () =>
46
46
)
47
47
) ;
48
48
49
+ const HelloWorld = lazy ( ( ) =>
50
+ import ( /* webpackChunkName: "hello-world" */ './hello-world' )
51
+ ) ;
52
+
49
53
wcNavFilterRootUrl ( ) ;
50
54
51
55
if ( ! ! window . wcCalypsoBridge . isEcommercePlanTrial ) {
@@ -93,7 +97,7 @@ if ( !! window.wcCalypsoBridge.isEcommercePlanTrial ) {
93
97
'wc-admin-onboarding-task-payments' ,
94
98
'woocommerce-admin-task-wcpay' , // WCPay task item which handles direct click on the task. (Not needed in free trial)
95
99
'woocommerce-admin-task-wcpay-page' , // WCPay task page which handles URL navigation to the task.
96
- 'wc-admin-onboarding-task-tax' ,
100
+ 'wc-admin-onboarding-task-tax'
97
101
) ;
98
102
99
103
// Add slot fill for payments task.
@@ -203,6 +207,20 @@ if ( !! window.wcCalypsoBridge.isEcommercePlan ) {
203
207
}
204
208
}
205
209
210
+ addFilter ( 'woocommerce_admin_pages_list' , 'wc-calypso-bridge' , ( pages ) => {
211
+ pages . push ( {
212
+ container : HelloWorld ,
213
+ path : '/hello-world' ,
214
+ breadcrumbs : [ 'Hello' , 'World' ] ,
215
+ navArgs : {
216
+ id : 'hello-world' ,
217
+ } ,
218
+ capability : 'manage_woocommerce' ,
219
+ } ) ;
220
+
221
+ return pages ;
222
+ } ) ;
223
+
206
224
addAction (
207
225
'plugins.pluginRegistered' ,
208
226
'wc-calypso-bridge' ,
You can’t perform that action at this time.
0 commit comments