Skip to content

Commit

Permalink
[replace] args of notice api
Browse files Browse the repository at this point in the history
  • Loading branch information
osmansufy committed Nov 22, 2024
1 parent c446b6b commit 6332d23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions includes/REST/AdminNoticeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ public function register_routes() {
'callback' => [ $this, 'dokan_get_admin_notices' ],
'permission_callback' => [ $this, 'check_permission' ],
'args' => [
'type' => [
'description' => __( 'Type of notices', 'dokan-lite' ),
'context' => 'string',
'context' => [
'description' => __( 'Notice context', 'dokan-lite' ),
'type' => 'string',
'required' => false,
'default' => 'all',
],
],
],
Expand Down

0 comments on commit 6332d23

Please sign in to comment.