00:00 || 00:30 🎬 Introduction
00:30 || 01:15 🎥 Demo
01:15 || 02:30 👩💼 Roles & Capabilities Introduction
02:30 || 03:30 🛠️ add_role() Example
03:30 || 04:00 🛠️ Custom Role
04:00 || 04:30 📝 Capabilities Example
04:30 || 06:30 🛠️ wp_get_current_user() to Debug User Roles & Capabilities
06:30 || 07:00 👋 Outro & Next Videos
References 📚
*1. Roles*
add_role()
Link: https://developer.wordpress.org/refer...
Adds a new role with specified capabilities.
Roles and Capabilities
Link: https://wordpress.org/documentation/a...
Provides documentation on the different roles and their capabilities in WordPress.
Roles and Capabilities in Plugins
Link: https://developer.wordpress.org/plugi...
Guide on managing roles and capabilities within plugins.
Special Roles in WordPress.org
Link: https://developer.wordpress.org/plugi...
Information on special roles specific to WordPress.org.
WP_Role::add_cap()
Link: https://developer.wordpress.org/refer...
Method to add a capability to a role.
remove_role()
Link: https://developer.wordpress.org/refer...
Removes an existing role from WordPress.
WP_Role::has_cap()
Link: https://developer.wordpress.org/refer...
Checks if a role has a specific capability.
WP_Role Class
Link: https://developer.wordpress.org/refer...
The WP_Role class, representing a user role and its capabilities.
User Roles and Capabilities
Link: https://developer.wordpress.org/apis/...
Overview of the user roles and capabilities API in WordPress.
*2. Capabilities*
Checking User Capabilities
Link: https://developer.wordpress.org/plugi...
How to check if a user has a specific capability.
WP_Role::has_cap()
Link: https://developer.wordpress.org/refer...
Checks if a role has a specific capability (duplicate link under Roles).
WP_Role Class
Link: https://developer.wordpress.org/refer...
The WP_Role class for roles and capabilities (duplicate link under Roles).
User Roles and Capabilities API
Link: https://developer.wordpress.org/apis/...
Overview of roles and capabilities API (duplicate link under Roles).
*3. Handle Uploads*
wp_check_filetype()
Link: https://developer.wordpress.org/refer...
Checks a file's type based on its extension and MIME type.
wp_handle_upload()
Link: https://developer.wordpress.org/refer...
Handles the process of uploading a file.
wp_insert_attachment()
Link: https://developer.wordpress.org/refer...
Inserts an attachment into the media library.
wp_generate_attachment_metadata()
Link: https://developer.wordpress.org/refer...
Generates metadata for an attachment.
set_post_thumbnail()
Link: https://developer.wordpress.org/refer...
Sets the featured image (thumbnail) for a post.
*4. Menus*
Top-Level Menus
Link: https://developer.wordpress.org/plugi...
Guide to adding top-level admin menus.
add_menu_page()
Link: https://developer.wordpress.org/refer...
Adds a top-level menu page.
Sub-Menus
Link: https://developer.wordpress.org/plugi...
Guide to adding sub-menus under top-level menus.
add_submenu_page()
Link: https://developer.wordpress.org/refer...
Adds a sub-menu page under a top-level menu.
*5. Predefined Sub Menus*
Predefined Sub-Menus
Link: https://developer.wordpress.org/plugi...
List of predefined sub-menus available in the WordPress admin.
Plugin Settings
Link: https://developer.wordpress.org/plugi...
How to add settings to your plugin.
Settings API
Link: https://developer.wordpress.org/plugi...
Using the Settings API to create and manage settings pages.
Смотрите видео Custom WordPress Plugin - Security Section Demo. онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь AndGoEdu 20 Июнь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1 раз и оно понравилось людям.