dozent_count( array $array = array() )
Determine if passed value is an array, if array, count that array, compatible with php > 7
Parameters
- $array
-
(array) (Optional)
Default value: array()
Return
(int)
Source
File: includes/core-functions.php
function dozent_count( $array = array() ) { if ( ! empty( $array ) && is_array( $array ) ) { return count( $array ); } return 0; }
Related
Used By
Used By | Description |
---|---|
Model/Model.php: Model::db_columns() |
Modal valid database column |
includes/core-functions.php: dozent_datetime_diff() |
Generate Precious Human Readable Time Difference |
includes/core-functions.php: dozent_array_to_in_sql() |
Array value to where in sql format |
includes/core-functions.php: dozent_query_vars() |
Get the registered vars by Dozent from the request | query |
includes/core-functions.php: dozent_get_instructors() |
Search instructors by passing search term |
includes/core-functions.php: dozent_get_next_previous_content_id() |
Get the Next and Previous ID of course content; |
includes/core-functions.php: dozent_has_instructor_permission_dashboard_permalink() |
Check if an instructor has permission for dashboard permalink |
includes/core-functions.php: sync_course_with_contents() |
Sync course with some data that we will use to reduce database query |
includes/core-functions.php: dozent_get_attachments() |
Get attachments from Dozent PostType like course | lecture | assignments |
includes/quiz-functions.php: dozent_get_quizzes_by_course() |
Get quizzes by course |
includes/quiz-functions.php: dozent_get_quiz_answers() |
Get the answers placed by a user on the quiz attempt |
includes/quiz-functions.php: dozent_get_attempts() |
Get quiz attempts |
includes/quiz-functions.php: dozent_get_questions() |
Get all questions by quiz |
includes/user-functions.php: dozent_get_statements() |
Get the earning statements by calling this funcitons |
includes/user-functions.php: dozent_get_courses_by_instructor() |
Get courses by instructors |
includes/user-functions.php: dozent_get_attached_instructors() |
Get all instructor attached in a course |
includes/form-functions.php: dozent_form_validate() |
Dozent provides a great approaches to validate your incoming data. |
includes/form-functions.php: dozent_form_errors() | |
includes/template-functions.php: _generate_categories_dropdown_option() |
Generate Course categories dropdown |
includes/template-functions.php: dozent_attachments() |
Get the attachments template by post ID. |
includes/template-functions.php: dozent_course_lead_meta_items() |
Template function to show course list meta items |
includes/earning-functions.php: dozent_get_earning_sum() |
Get earning summery of an instructor |
includes/course-functions.php: dozent_get_wishlist_courses() |
Get wishlist courses by specific user |
includes/course-functions.php: dozent_get_enrolled_courses() |
Get all enrolled courses by specific user |
includes/course-functions.php: dozent_get_course_price_type() |
Get the course price type, |
classes/Ajax.php: Ajax::dozent_add_instructors() | |
classes/Ajax.php: Ajax::dozent_search_instructor() | |
classes/WithdrawalsList.php: WithdrawalsList::column_withdraw_method() | |
classes/Dashboard.php: Dashboard::dashboard_permalinks() | |
classes/Options.php: Options::set_sections() | |
classes/Withdrawal.php: Withdrawal::balance_withdrawal() | |
classes/Withdrawal.php: Withdrawal::save_withdraw_account() |
Save Withdraw Method Data |
classes/UserData.php: UserData::_sync_complete_course_content_with_user_data() | |
classes/Course.php: Course::completed_content_ids() | |
classes/Course.php: Course::start_uri() |
Return the start course URL sequently |
classes/Quiz.php: Quiz::review_attempt() |
Review Quiz Attempt |
classes/Quiz.php: Quiz::submit_question() | |
classes/Quiz.php: Quiz::quiz_attempting() |
Check if user attempting to any question right now. |
classes/Quiz.php: Quiz::dozent_quiz_update_question() |
Update quiz question |
classes/Quiz.php: Quiz::dozent_quiz_add_question() |
Quiz Add Question |
classes/Quiz.php: Quiz::sort_quiz_questions() |
Sort quiz question |
classes/Template.php: Template::course_query_archive() | |
classes/MetaBox.php: MetaBox::save_course_metabox() | |
classes/MetaBox.php: MetaBox::generate_field() | |
classes/MetaBox.php: MetaBox::course_builder() |
Course Builder |
classes/WooCommerce.php: WooCommerce::add_earning_data() |
Add earning data and split the earning between instructors |
classes/WooCommerce.php: WooCommerce::order_status_changed() | |
classes/WooCommerce.php: WooCommerce::placing_order_from_frontend() |
Course placing order from customer |
classes/WooCommerce.php: WooCommerce::placing_order_from_admin() |
Place woocommerce order from the admin panel and sync it with course enrol |
classes/WooCommerce.php: WooCommerce::attach_courses_to_product() | |
classes/CourseBuilder.php: CourseBuilder::_delete_section() | |
classes/CourseBuilder.php: CourseBuilder::sorting_curriculum_items() |
Sorting curriculum Items |
classes/CourseBuilder.php: CourseBuilder::dozent_save_lecture() |
Add Lecture Action |
classes/CourseBuilder.php: CourseBuilder::front_save_course() | |
classes/Admin.php: Admin::posts_clauses_request() | |
classes/EDD.php: EDD::attach_courses_to_product() | |
classes/CourseGate.php: CourseGate::enter_course() | |
classes/EDD.php: EDD::add_earning_data() | |
classes/EDD.php: EDD::edd_complete_purchase() |
Runs **when** a purchase is marked as “complete”. |
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |