Skip to content

Commit ae675a8

Browse files
authored
plugin security user Role deffination added
1 parent 2887e35 commit ae675a8

1 file changed

Lines changed: 32 additions & 23 deletions

File tree

data/wordpress-plugin-development.json

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -301,30 +301,39 @@
301301
]
302302
},
303303
{
304-
"title": "প্লাগইন সিকিউরিটি (ইউসার রোলেস)",
305-
"items": [{
306-
"code": "add_role()"
307-
},
308-
{
309-
"code": "remove_role()"
310-
},
311-
{
312-
"code": "get_role()"
313-
},
314-
{
315-
"code": "add_cap()"
316-
},
317-
{
318-
"code": "remove_cap()"
319-
},
320-
{
321-
"code": "user_can()"
322-
},
323-
{
324-
"code": "current_user_can()"
325-
}
326-
]
304+
"title": "প্লাগইন সিকিউরিটি (ইউসার রোলেস)",
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 )"
327321
},
322+
{
323+
"definition": "একটি রোল থেকে ক্যাপাবিলিটি সরানোর জন্য",
324+
"code": "remove_cap( string $role, string $cap )"
325+
},
326+
{
327+
"definition": "নির্দিষ্ট একজন ইউসার কোনো কাজ করতে পারবে কিনা তা যাচাইয়ের জন্য",
328+
"code": "user_can( WP_User $user, string $capability )"
329+
},
330+
{
331+
"definition": "বর্তমান ইউসার কোনো নির্দিষ্ট কাজ করতে পারে কিনা যাচাইয়ের জন্য",
332+
"code": "current_user_can( string $capability )"
333+
}
334+
]
335+
}
336+
,
328337
{
329338
"title": "প্লাগইন সিকিউরিটি (ভ্যালিডেশন)",
330339
"items": [{

0 commit comments

Comments
 (0)