static fn() => current_user_can( 'edit_posts' ), 'callback' => static fn( WP_REST_Request $request ): array => get_icon_data( $request ), 'methods' => WP_REST_Server::READABLE, [ 'args' => [ 'sets' => [ 'required' => false, 'type' => 'string', ], 'set' => [ 'required' => false, 'type' => 'string', ], ], ], ] ); }