Abilities Reference (ক্ষমতা নির্দেশিকা)
Abilities হলো সেই মৌলিক কাজগুলো (atomic actions) যা Gratis AI Agent আপনার WordPress ইনস্টলেশনে ব্যবহার করতে পারে। প্রতিটি ability একটি রেজিস্টার্ড PHP class যা একটি JSON schema প্রকাশ করে — এজেন্ট রানটাইমে এই schema পড়ে বুঝতে পারে যে কী কী প্যারামিটার প্রয়োজন এবং ability টি কী ধরনের ডেটা ফেরত দেবে।
এই পাতাটি Gratis AI Agent v1.9.0 এর সাথে আসা সমস্ত ability ডকুমেন্ট করে।
Custom Post Types (কাস্টম পোস্ট টাইপ)
এই ability গুলো এজেন্ট দ্বারা রেজিস্টার করা কাস্টম পোস্ট টাইপ (CPTs) পরিচালনা করে। এই রেজিস্ট্রেশনগুলো WordPress options টেবিলে সেভ করা হয়, যাতে প্লাগইন নিষ্ক্রিয় (deactivate) এবং পুনরায় সক্রিয় (reactivate) হলেও এগুলো টিকে থাকে।
register_post_type
একটি নতুন কাস্টম পোস্ট টাইপ রেজিস্টার করে।
Parameters (প্যারামিটার)
| Parameter (প্যারামিটার) | Type (ধরন) | Required (প্রয়োজনীয়) | Description (ব িবরণ) |
|---|---|---|---|
slug | string | Yes (হ্যাঁ) | পোস্ট টাইপ কী (সর্বোচ্চ ২০ অক্ষর, কোনো বড় হাতের অক্ষর বা স্পেস নেই) |
singular_label | string | Yes (হ্যাঁ) | মানুষের পড়ার উপযোগী একবচন নাম, যেমন: Portfolio Item |
plural_label | string | Yes (হ্যাঁ) | মানুষের পড়ার উপযোগী বহুবচন নাম, যেমন: Portfolio |
public | bool | (Optional) | Whether the post type should be visible on the front end. |
delete_post_type
Deletes a post type.
get_post_type
Retrieves information about a post type.
register_post_type
Registers a new post type.
unregister_post_type
Unregisters a post type.
get_all_post_types
Retrieves a list of all registered post types.
get_post_type_details
Retrieves detailed information for a specific post type.
create_post_type
Creates a new post type with specified arguments.
update_post_type
Updates an existing post type.
delete_post_type_by_slug
Deletes a post type using its slug.
get_post_type_by_slug
Retrieves a post type by its slug.
list_all_post_types
Lists all available post types.
get_post_type_info
Gets detailed info for a post type.
create_post_type_with_args
Creates a post type using arguments.