dozent_input_text( null $field_name = null )
Sanitize and return text field value
Description
See also
Parameters
- $field_name
-
(null) (Optional)
Default value: null
Return
(string|null)
Source
File: includes/form-functions.php
function dozent_input_text( $field_name = null ) { if ( ! $field_name ) { return null; } $value = sanitize_text_field( dozent_array_get( $field_name, $_POST ) ); if ( ! $value ) { $value = sanitize_text_field( dozent_array_get( $field_name, $_GET ) ); } if ( $value ) { return $value; } return null; }
Related
Uses
Uses | Description |
---|---|
includes/core-functions.php: dozent_array_get() |
Return array value by given key, Get array key by dot notation |
Used By
Used By | Description |
---|---|
includes/core-functions.php: dozent_get_course_reviews() |
Query rating and reviews |
includes/core-functions.php: dozent_courses_per_page() | |
includes/quiz-functions.php: dozent_get_quizzes_by_course() |
Get quizzes by course |
includes/user-functions.php: dozent_get_courses_by_instructor() |
Get courses by instructors |
includes/form-functions.php: is_dozent_action() | |
includes/template-functions.php: dozent_current_page() |
Get current page as number |
includes/earning-functions.php: dozent_get_withdrawals() |
Get all withdrawals requested by user |
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 |
classes/User.php: User::reset_password() | |
classes/User.php: User::profile_edit() | |
classes/User.php: User::user_signup() | |
classes/Ajax.php: Ajax::dozent_search_reviews() | |
classes/Ajax.php: Ajax::dozent_search_instructor() | |
classes/Ajax.php: Ajax::dozent_add_instructors() | |
classes/Ajax.php: Ajax::dozent_detach_instructor() |
Detach an instructor from a course. |
classes/Ajax.php: Ajax::dozent_save_review() | |
classes/Ajax.php: Ajax::dozent_load_more_reviews() |
Load more reviews |
classes/Ajax.php: Ajax::open_review_update_modal() |
Opening update modal from the dashboard |
classes/Dashboard.php: Dashboard::dozent_dashboard_sidebar_toggle() |
Dashboard Sidebar On Off Toggle |
classes/Withdrawal.php: Withdrawal::balance_withdrawal() | |
classes/Withdrawal.php: Withdrawal::save_withdraw_account() |
Save Withdraw Method Data |
classes/Discussion.php: Discussion::dozent_discussion_reply_question() | |
classes/Discussion.php: Discussion::dozent_discussion_ask_question() | |
classes/Application.php: Application::register_hooks() |
Register hooks for DozentLMS |
classes/Quiz.php: Quiz::submit_question() | |
classes/Quiz.php: Quiz::review_attempt() |
Review Quiz Attempt |
classes/Quiz.php: Quiz::attempt_view() |
View attempt detail |
classes/Quiz.php: Quiz::start_quiz() |
Start Quiz |
classes/Quiz.php: Quiz::question_option_delete() |
Delete Quiz Question Option |
classes/Quiz.php: Quiz::quiz_question_delete() | |
classes/Quiz.php: Quiz::dozent_quiz_update_question() |
Update quiz question |
classes/Quiz.php: Quiz::load_edit_question_modal() | |
classes/Quiz.php: Quiz::dozent_quiz_add_question() |
Quiz Add Question |
classes/Quiz.php: Quiz::quiz_load_edit() |
Load Quiz Edit Form |
classes/Quiz.php: Quiz::dozent_save_quiz() |
Add Lecture Action |
classes/Template.php: Template::course_query_archive() | |
classes/MetaBox.php: MetaBox::save_difficulty_level() | |
classes/MetaBox.php: MetaBox::dozent_save_course_metabox() |
Save Course metabox via Ajax |
classes/InstructorsList.php: InstructorsList::process_bulk_action() | |
classes/MetaBox.php: MetaBox::frontend_course_builder() | |
classes/WooCommerce.php: WooCommerce::attach_courses_to_product() | |
classes/WooCommerce.php: WooCommerce::save_wc_product_meta() | |
classes/CourseBuilder.php: CourseBuilder::delete_section() |
Delete Section from the course curriculum |
classes/CourseBuilder.php: CourseBuilder::delete_course_content() |
Delete course content |
classes/CourseBuilder.php: CourseBuilder::lecture_load_edit() | |
classes/CourseBuilder.php: CourseBuilder::dozent_save_lecture() |
Add Lecture Action |
classes/CourseBuilder.php: CourseBuilder::update_section() |
Update Course Section |
classes/CourseBuilder.php: CourseBuilder::save_new_section() | |
classes/CourseBuilder.php: CourseBuilder::save_course_access_method() |
Save course acces method |
classes/CourseBuilder.php: CourseBuilder::front_save_course() | |
classes/Admin.php: Admin::instructors() | |
classes/Wishlist.php: Wishlist::dozent_wishlist() | |
classes/EDD.php: EDD::attach_courses_to_product() | |
classes/CourseGate.php: CourseGate::enter_course() |
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |