Skip to content

Commit 48ab4d7

Browse files
authored
Merge pull request #1145 from nazmulch11/patch-11
plugin security user Role deffination added
2 parents 0750590 + d303af5 commit 48ab4d7

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

data/wordpress-plugin-development.json

+35-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,29 @@
302302
},
303303
{
304304
"title": "প্লাগইন সিকিউরিটি (ইউসার রোলেস)",
305-
"items": [{
305+
"items": [
306+
{
307+
"definition": "নতুন ইউসার রোল তৈরির জন্য",
308+
"code": "add_role( string $role, string $display_name, array $capabilities = array() )"
309+
},
310+
{
311+
"definition": "একটি ইউসার রোল সরানোর জন্য",
312+
"code": "remove_role( string $role )"
313+
},
314+
{
315+
"definition": "একটি রোলের তথ্য পেতে",
316+
"code": "get_role( string $role )"
317+
},
318+
{
319+
"definition": "কোনো রোলের জন্য নতুন ক্যাপাবিলিটি যোগ করার জন্য",
320+
"code": "add_cap( string $role, string $cap, bool $grant = true )"
321+
}
322+
]
323+
},
324+
{
325+
"title": "প্লাগইন সিকিউরিটি (ইউসার রোলেস)",
326+
"items": [
327+
{
306328
"code": "add_role()",
307329
"definition": "ইউসার রোল যোগ করুন"
308330
},
@@ -326,6 +348,18 @@
326348
{
327349
"code": "current_user_can()",
328350
"definition": "বর্তমান ইউসার করতে পারে"
351+
},
352+
{
353+
"definition": "একটি রোল থেকে ক্যাপাবিলিটি সরানোর জন্য",
354+
"code": "remove_cap( string $role, string $cap )"
355+
},
356+
{
357+
"definition": "নির্দিষ্ট একজন ইউসার কোনো কাজ করতে পারবে কিনা তা যাচাইয়ের জন্য",
358+
"code": "user_can( WP_User $user, string $capability )"
359+
},
360+
{
361+
"definition": "বর্তমান ইউসার কোনো নির্দিষ্ট কাজ করতে পারে কিনা যাচাইয়ের জন্য",
362+
"code": "current_user_can( string $capability )"
329363
}
330364
]
331365
},

0 commit comments

Comments
 (0)