learndash_is_admin_user( int|WP_User $user )
Checks if a user has the admin capabilities.
Description #
Parameters #
- $user
-
(int|WP_User) (Optional) The
WP_User
object or user ID to check. Default 0.
Return #
(boolean) Returns true if the user is admin otherwise false.
Source #
File: includes/ld-groups.php
Related #
Namespace #
@package #
Used By #
Used By | Description |
---|---|
includes/admin/class-learndash-admin-file-download-handler.php: Learndash_Admin_File_Download_Handler::init () |
Initializes the file download handler. |
includes/admin/class-learndash-admin-action-scheduler.php: Learndash_Admin_Action_Scheduler::show_processing_notices () |
Show admin notices related to the scheduled tasks. |
includes/rest-api/v2/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V2::get_user_courses_permissions_check () |
Checks if a given request has access to read user courses. |
includes/gutenberg/lib/class-learndash-gutenberg-block.php: LearnDash_Gutenberg_Block::block_attributes_get_user_id () |
Utility function to determine the User ID from the block attributes. |
includes/rest-api/v2/class-ld-rest-quiz-form-entries-controller.php: LD_REST_Quiz_Form_Entries_Controller_V2::get_items_permissions_check () |
Checks whether a given request has permission to read question type. |
includes/quiz/ld-quiz-functions.php: learndash_quiz_statistics_users_select2 () |
Quiz Statistics History panel users selector AJAX (select2) |
includes/course/ld-course-info-widget.php: learndash_ajax_course_registered_pager () |
Handles the AJAX pagination for the courses registered. |
includes/course/ld-course-info-widget.php: learndash_ajax_course_progress_pager () |
Handles the AJAX pagination for the course progress. |
includes/course/ld-course-info-widget.php: learndash_ajax_quiz_progress_pager () |
Handles the AJAX pagination for the quiz progress. |
includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php: LD_REST_Quiz_Statistics_Controller_V2::users_for_stats () |
User IDs for fetching statistics. |
includes/rest-api/v2/class-ld-rest-groups-leaders-controller.php: LD_REST_Groups_Leaders_Controller_V2::get_groups_leaders_permissions_check () |
Permissions check for getting group leaders. |
includes/rest-api/v2/class-ld-rest-groups-leaders-controller.php: LD_REST_Groups_Leaders_Controller_V2::update_groups_leaders_permissions_check () |
Checks permission to update group leaders. |
includes/rest-api/v2/class-ld-rest-groups-leaders-controller.php: LD_REST_Groups_Leaders_Controller_V2::delete_groups_leaders_permissions_check () |
Checks permission to delete group leaders. |
includes/rest-api/v2/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V2::get_step_items_permissions_check () |
Permissions check for getting user progress item. |
includes/rest-api/v2/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V2::get_header_items_permissions_check () |
Permissions check for getting user progress items. |
includes/rest-api/v2/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V2::check_request_params () |
Common function to check and set request params used by the endpoints. |
includes/rest-api/v2/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V2::get_request_courses () |
Common function to get the displayable Courses. |
includes/rest-api/v2/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V2::get_header_item_permissions_check () |
Permissions check for getting user progress item. |
includes/rest-api/v2/class-ld-rest-courses-prerequisites-controller.php: LD_REST_Courses_Prerequisites_Controller_V2::get_courses_prerequisites_permissions_check () |
Permissions check for getting course groups. |
includes/rest-api/v2/class-ld-rest-courses-steps-controller.php: LD_REST_Courses_Steps_Controller_V2::get_course_steps_permissions_check () |
Permissions check for getting course steps. |
includes/rest-api/v2/class-ld-rest-lessons-controller.php: LD_REST_Lessons_Controller_V2::get_item_permissions_check () |
Check user permission to get/access single Lesson. |
includes/rest-api/v2/class-ld-rest-lessons-controller.php: LD_REST_Lessons_Controller_V2::get_items_permissions_check () |
Check user permission to get/access Lessons. |
includes/rest-api/v2/class-ld-rest-users-quiz-progress-controller.php: LD_REST_Users_Quiz_Progress_Controller_V2::get_items_permissions_check () |
Permissions check for getting user progress. |
includes/rest-api/v2/class-ld-rest-users-quiz-progress-controller.php: LD_REST_Users_Quiz_Progress_Controller_V2::get_items () |
Get user course progress. |
includes/rest-api/v2/class-ld-rest-essays-controller.php: LD_REST_Essays_Controller_V2::get_item_permissions_check () |
Check user permission to get/access single item. |
includes/rest-api/v2/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V2::update_user_courses_permissions_check () |
Checks if a given request has access to update user courses. |
includes/rest-api/v2/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V2::delete_user_courses_permissions_check () |
Checks if a given request has access to delete user courses. |
includes/rest-api/v2/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V2::update_user_courses () |
Update a user courses. |
includes/rest-api/v2/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V2::delete_user_courses () |
Delete a user courses. |
includes/rest-api/v2/class-ld-rest-courses-groups-controller.php: LD_REST_Courses_Groups_Controller_V2::get_courses_groups_permissions_check () |
Permissions check for getting course groups. |
includes/rest-api/v2/class-ld-rest-courses-groups-controller.php: LD_REST_Courses_Groups_Controller_V2::update_courses_groups_permissions_check () |
Checks if a given request has access to update a course groups. |
includes/rest-api/v2/class-ld-rest-courses-groups-controller.php: LD_REST_Courses_Groups_Controller_V2::delete_courses_groups_permissions_check () |
Checks if a given request has access to delete a course groups. |
includes/rest-api/v2/class-ld-rest-groups-controller.php: LD_REST_Groups_Controller_V2::get_items_permissions_check () |
Permissions check for getting groups. |
includes/rest-api/v2/class-ld-rest-groups-controller.php: LD_REST_Groups_Controller_V2::get_item_permissions_check () |
Checks if a given request has access to read a post. |
includes/rest-api/v2/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V2::get_item_permissions_check () |
Check user permission to get/access single Quiz. |
includes/rest-api/v2/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V2::get_items_permissions_check () |
Check user permission to get/access Quizzes. |
includes/rest-api/v2/class-ld-rest-users-groups-controller.php: LD_REST_Users_Groups_Controller_V2::get_user_groups_permissions_check () |
Permissions check for getting user groups. |
includes/rest-api/v2/class-ld-rest-users-groups-controller.php: LD_REST_Users_Groups_Controller_V2::update_user_groups_permissions_check () |
Permissions check for updating user groups. |
includes/rest-api/v2/class-ld-rest-users-groups-controller.php: LD_REST_Users_Groups_Controller_V2::delete_user_groups_permissions_check () |
Permissions check for deleting user groups. |
includes/rest-api/v2/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V2::get_courses_users_permissions_check () |
Checks if a given request has access to read course users. |
includes/rest-api/v2/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V2::update_courses_users_permissions_check () |
Checks if a given request has access to update a course users. |
includes/rest-api/v2/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V2::delete_courses_users_permissions_check () |
Checks if a given request has access to delete a course users. |
includes/rest-api/v2/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V2::update_courses_users () |
Updates a course users. |
includes/rest-api/v2/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V2::delete_courses_users () |
Delete course users. |
includes/rest-api/v2/class-ld-rest-topics-controller.php: LD_REST_Topics_Controller_V2::get_item_permissions_check () |
Check user permission to get/access single Topic. |
includes/rest-api/v2/class-ld-rest-topics-controller.php: LD_REST_Topics_Controller_V2::get_items_permissions_check () |
Check user permission to get/access Lessons. |
includes/rest-api/v2/class-ld-rest-assignments-controller.php: LD_REST_Assignments_Controller_V2::get_item_permissions_check () |
Check user permission to get/access single Lesson. |
includes/rest-api/v2/class-ld-rest-groups-users-controller.php: LD_REST_Groups_Users_Controller_V2::get_groups_users_permissions_check () |
Permissions check for getting group users. |
includes/rest-api/v2/class-ld-rest-groups-users-controller.php: LD_REST_Groups_Users_Controller_V2::update_groups_users_permissions_check () |
Checks permission to update group users. |
includes/rest-api/v2/class-ld-rest-groups-users-controller.php: LD_REST_Groups_Users_Controller_V2::delete_groups_users_permissions_check () |
Checks permission to delete group leaders. |
includes/rest-api/v2/class-ld-rest-posts-controller.php: LD_REST_Posts_Controller_V2::rest_post_type_has_archive () |
Check if we are allowing the post type to be publicly viewed without restrictions to course_id. |
includes/rest-api/v2/class-ld-rest-groups-courses-controller.php: LD_REST_Groups_Courses_Controller_V2::get_groups_courses_permissions_check () |
Checks permission to get group courses. |
includes/rest-api/v2/class-ld-rest-groups-courses-controller.php: LD_REST_Groups_Courses_Controller_V2::update_groups_courses_permissions_check () |
Checks permission to update group courses. |
includes/rest-api/v2/class-ld-rest-groups-courses-controller.php: LD_REST_Groups_Courses_Controller_V2::delete_groups_courses_permissions_check () |
Checks permission to update delete courses. |
includes/ld-certificates.php: learndash_certificate_display () |
Display the PDF Certificate. |
src/deprecated/LearnDash_PayPal_IPN.php: LearnDash_PayPal_IPN::ipn_init_post_data () |
Initialize the |
includes/course/ld-course-functions.php: learndash_can_user_autoenroll_courses () |
Check if user can auto-enroll in courses. |
includes/admin/classes-posts-listings/class-learndash-admin-assignments-listing.php: Learndash_Admin_Assignments_Listing::listing_table_query_vars_filter_assignments () |
Listing table query vars |
includes/admin/classes-posts-listings/class-learndash-admin-assignments-listing.php: Learndash_Admin_Assignments_Listing::edit_list_table_views () |
Hides the list table views for non admin users. |
includes/admin/classes-posts-listings/class-learndash-admin-essays-listing.php: Learndash_Admin_Essays_Listing::edit_list_table_views () |
Hides the list table views for non admin users. |
includes/admin/classes-posts-listings/class-learndash-admin-essays-listing.php: Learndash_Admin_Essays_Listing::listing_table_query_vars_filter_essays () |
Listing table query vars |
includes/admin/classes-posts-listings/class-learndash-admin-groups-listing.php: Learndash_Admin_Groups_Listing::listing_table_query_vars_filter_groups () |
Listing table query vars |
includes/ld-certificates.php: learndash_get_group_certificate_link () |
Get Group certificate link for user |
includes/ld-groups.php: learndash_fetch_quiz_statistic_history_where_filter () |
Filter Quiz Statistics user listing to show only related users. |
includes/shortcodes/ld_usermeta.php: learndash_usermeta_shortcode () |
Builds the |
includes/shortcodes/ld_groupinfo.php: learndash_groupinfo_shortcode () |
Builds the |
includes/course/ld-course-functions.php: learndash_can_user_bypass () |
Check if user can bypass action ($context). |
includes/ld-certificates.php: learndash_certificate_details () |
Gets certificate details. |
includes/ld-certificates.php: learndash_get_course_certificate_link () |
Gets the course certificate link for the user. |
includes/ld-assignment-uploads.php: learndash_assignment_permissions () |
Manages the permissions to view the assignment. |
includes/ld-assignment-uploads.php: learndash_register_assignment_upload_type () |
Registers assignments custom post type. |
includes/deprecated/3.4.1/functions.php: learndash_assignment_migration () |
Migrates the assignments from post meta to assignments custom post type. |
includes/ld-assignment-uploads.php: learndash_assignment_process_init () |
Handles the upload, delete, and mark as complete for the assignment. |
includes/class-ld-lms.php: SFWD_LMS::add_post_types () |
Sets up CPT’s and creates a ‘new SFWD_CPT_Instance()’ of each |
includes/class-ld-lms.php: SFWD_LMS::course_progress_data () |
Course progress data |
includes/class-ld-lms.php: SFWD_LMS::quiz_export_init () |
Export quiz data to CSV |
includes/ld-autoupdate.php: nss_plugin_updater_sfwd_lms::nss_plugin_license_menupage () |
Outputs the license settings page |
includes/ld-groups.php: learndash_is_group_leader_user () |
Checks if a user has the group leader capabilities. |
includes/ld-groups.php: learndash_get_administrators_group_ids () |
Gets the list of group IDs administered by the user. |
includes/ld-groups.php: learndash_get_groups () |
Gets the list of all groups. |
includes/shortcodes/ld_group_user_list.php: learndash_group_user_list () |
Group user list |
includes/ld-groups.php: learndash_group_emails () |
Handles group email messages. |
includes/ld-groups.php: learndash_get_groups_courses_ids () |
Groups all the related course ids for a set of groups IDs. |
includes/ld-users.php: learndash_show_user_course_complete () |
Checks whether to show user course complete. |
includes/ld-reports.php: learndash_reports_get_activity () |
Queries the user activity for the report. |
includes/ld-reports.php: learndash_get_report_user_ids () |
Gets the list of user IDs for the report. |
includes/settings/settings-sections/class-ld-settings-section-support-data-reset.php: LearnDash_Settings_Section_Data_Reset::on_settings_page_load () |
On Settings Page Load |
includes/settings/settings-sections/class-ld-settings-section-support-data-reset.php: LearnDash_Settings_Section_Data_Reset::show_support_section () |
Show Support Section |
includes/settings/settings-pages/class-ld-settings-page-overview.php: LearnDash_Settings_Page_Overview::show_settings_page () |
Custom display function for page content. |
includes/rest-api/v1/class-ld-rest-groups-leaders-controller.php: LD_REST_Groups_Leaders_Controller_V1::get_groups_leaders_permissions_check () |
Check Group Leaders Read Permissions. |
includes/rest-api/v1/class-ld-rest-groups-leaders-controller.php: LD_REST_Groups_Leaders_Controller_V1::update_groups_leaders_permissions_check () |
Check Group Leaders Update Permissions. |
includes/rest-api/v1/class-ld-rest-groups-leaders-controller.php: LD_REST_Groups_Leaders_Controller_V1::delete_groups_leaders_permissions_check () |
Check Group Leaders Delete Permissions. |
includes/rest-api/v1/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V1::get_users_progress_permissions_check () |
Check User Progress Read Permissions. |
includes/rest-api/v1/class-ld-rest-courses-steps-controller.php: LD_REST_Courses_Steps_Controller_V1::get_course_steps_permissions_check () |
Course steps permissions check |
includes/rest-api/v1/class-ld-rest-courses-steps-controller.php: LD_REST_Courses_Steps_Controller_V1::update_course_steps_permissions_check () |
Update course steps permissions check |
includes/rest-api/v1/class-ld-rest-lessons-controller.php: LD_REST_Lessons_Controller_V1::get_item_permissions_check () |
Check Single Lesson Read Permissions. |
includes/rest-api/v1/class-ld-rest-lessons-controller.php: LD_REST_Lessons_Controller_V1::get_items_permissions_check () |
Check Lessons Read Permissions. |
includes/rest-api/v1/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V1::get_user_courses_permissions_check () |
Check User Courses Read Permissions. |
includes/rest-api/v1/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V1::update_user_courses_permissions_check () |
Check User Courses Update Permissions. |
includes/rest-api/v1/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V1::delete_user_courses_permissions_check () |
Check User Courses Delete Permissions. |
includes/rest-api/v1/class-ld-rest-users-quiz-attempts-controller.php: LD_REST_Users_Quiz_Attempts_Controller_V1::get_quiz_attempts_permissions_check () |
Check Quiz Attempts Read Permissions. |
includes/rest-api/v1/class-ld-rest-courses-groups-controller.php: LD_REST_Courses_Groups_Controller_V1::get_courses_groups_permissions_check () |
Check Courses Groups Read Permissions. |
includes/rest-api/v1/class-ld-rest-courses-groups-controller.php: LD_REST_Courses_Groups_Controller_V1::update_courses_groups_permissions_check () |
Check Courses Groups Update Permissions. |
includes/rest-api/v1/class-ld-rest-courses-groups-controller.php: LD_REST_Courses_Groups_Controller_V1::delete_courses_groups_permissions_check () |
Check Courses Groups Delete Permissions. |
includes/rest-api/v1/class-ld-rest-groups-controller.php: LD_REST_Groups_Controller_V1::get_items_permissions_check () |
Check Groups Read Permissions. |
includes/rest-api/v1/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V1::get_item_permissions_check () |
Check Single Quiz Read Permissions. |
includes/rest-api/v1/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V1::get_items_permissions_check () |
Check if a given request has access manage the item. |
includes/rest-api/v1/class-ld-rest-users-groups-controller.php: LD_REST_Users_Groups_Controller_V1::get_user_groups_permissions_check () |
Check Users Groups Read Permissions. |
includes/rest-api/v1/class-ld-rest-users-groups-controller.php: LD_REST_Users_Groups_Controller_V1::update_user_groups_permissions_check () |
Check Users Groups Update Permissions. |
includes/rest-api/v1/class-ld-rest-users-groups-controller.php: LD_REST_Users_Groups_Controller_V1::delete_user_groups_permissions_check () |
Check Users Groups Delete Permissions. |
includes/rest-api/v1/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V1::update_courses_users_permissions_check () |
Check Courses Users Update Permissions. |
includes/rest-api/v1/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V1::delete_courses_users_permissions_check () |
Check Courses Users Delete Permissions. |
includes/rest-api/v1/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V1::get_courses_users_permissions_check () |
Check Courses Users Read Permissions. |
includes/rest-api/v1/class-ld-rest-groups-users-controller.php: LD_REST_Groups_Users_Controller_V1::get_groups_users_permissions_check () |
Check Group Users Read Permissions. |
includes/rest-api/v1/class-ld-rest-groups-users-controller.php: LD_REST_Groups_Users_Controller_V1::delete_groups_users_permissions_check () |
Check Group Leaders Delete Permissions. |
includes/rest-api/v1/class-ld-rest-groups-users-controller.php: LD_REST_Groups_Users_Controller_V1::update_groups_users_permissions_check () |
Check Group Leaders Update Permissions. |
includes/rest-api/v1/class-ld-rest-topics-controller.php: LD_REST_Topics_Controller_V1::get_item_permissions_check () |
Check Single Topic Read Permissions. |
includes/rest-api/v1/class-ld-rest-topics-controller.php: LD_REST_Topics_Controller_V1::get_items_permissions_check () |
Check Topics Read Permissions. |
includes/rest-api/v1/class-ld-rest-groups-courses-controller.php: LD_REST_Groups_Courses_Controller_V1::get_groups_courses_permissions_check () |
Check Groups Courses Read Permissions. |
includes/rest-api/v1/class-ld-rest-groups-courses-controller.php: LD_REST_Groups_Courses_Controller_V1::update_groups_courses_permissions_check () |
Check Groups Courses Update Permissions. |
includes/rest-api/v1/class-ld-rest-groups-courses-controller.php: LD_REST_Groups_Courses_Controller_V1::delete_groups_courses_permissions_check () |
Check Groups Courses Delete Permissions. |
includes/quiz/ld-quiz-essays.php: learndash_register_essay_post_type () |
Registers the essay post type. |
includes/quiz/ld-quiz-essays.php: learndash_essay_permissions () |
Manages the permissions for the essay post type. |
includes/shortcodes/ld_courseinfo.php: learndash_courseinfo () |
Builds the |
includes/shortcodes/ld_quizinfo.php: learndash_quizinfo () |
Builds the |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_StatisticsAjax.php: WpProQuiz_View_StatisticsAjax::showUserAnswer () | |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_StatisticsNew.php: WpProQuiz_View_StatisticsNew::showHistory () | |
includes/lib/wp-pro-quiz/lib/controller/WpProQuiz_Controller_Statistics.php: WpProQuiz_Controller_Statistics::showNew () | |
includes/lib/wp-pro-quiz/lib/controller/WpProQuiz_Controller_Toplist.php: WpProQuiz_Controller_Toplist::addInToplist () | |
includes/gutenberg/lib/class-learndash-gutenberg-block.php: LearnDash_Gutenberg_Block::prepare_course_list_atts_to_param () |
Common function used by the ld_course_list, ld_lesson_list, ld_topic_list, and ld_quiz_list called from the render_block short/block processing function. |
includes/course/ld-course-steps-functions.php: learndash_check_course_step () |
Validates the URL requests when nested URL permalinks are used. |
includes/course/ld-course-progress.php: learndash_mark_complete () |
Outputs the HTML output to mark a course complete. |
includes/shortcodes/ld_profile.php: learndash_profile () |
Builds the |
includes/admin/class-learndash-admin-menus-tabs.php: Learndash_Admin_Menus_Tabs::learndash_admin_tabs () |
Set up admin tabs for each admin menu page under LearnDash |
includes/admin/class-learndash-admin-menus-tabs.php: Learndash_Admin_Menus_Tabs::admin_header_panel () |
Show the new Admin header panel |
includes/admin/class-learndash-admin-data-upgrades.php: learndash_data_upgrades_ajax () |
AJAX function to handle calls from browser on Data Upgrade cycles. |
includes/admin/class-learndash-admin-groups-users-list.php: Learndash_Admin_Groups_Users_List::show_page () |
Show page |
includes/admin/class-learndash-admin-groups-users-list.php: learndash_data_group_reports_ajax () |
Handle Groups Table AJAX for Reports. |
includes/admin/class-learndash-admin-user-profile-edit.php: Learndash_Admin_User_Profile_Edit::show_leader_groups () |
Show User Leader of Groups Binary Selector. |