llms_parse_bool( mixed $val )
Parse booleans
Description #Description
Mostly used to parse yes/no bools stored in various meta data fields.
Parameters #Parameters
- $val
-
(mixed) (Required) Value to parse.
Return #Return
(bool)
Source #Source
File: includes/llms.functions.core.php
function llms_parse_bool( $val ) { return filter_var( $val, FILTER_VALIDATE_BOOLEAN ); }
Expand full source code Collapse full source code View on GitHub
Changelog #Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |
Related #Related
Used By #Used By
Used By | Description |
---|---|
includes/processors/class.llms.processor.course.data.php: LLMS_Processor_Course_Data::is_already_processing_course() |
Determines if the supplied course is already being processed. |
includes/models/model.llms.user.certificate.php: LLMS_User_Certificate::is_sharing_enabled() |
Is sharing enabled |
includes/models/model.llms.quiz.attempt.php: LLMS_Quiz_Attempt::delete() |
Delete the object from the database |
vendor/lifterlms/lifterlms-rest/includes/server/class-llms-rest-lessons-controller.php: LLMS_REST_Lessons_Controller::prepare_object_for_response() |
Prepare a single object output for response. |
includes/models/model.llms.access.plan.php: LLMS_Access_Plan::calculate_redirection_url() |
Calculate redirection url from settings |
includes/class.llms.site.php: LLMS_Site::is_clone_ignored() |
Determines whether or not the clone warning notice has been ignored |
includes/models/model.llms.lesson.php: LLMS_Lesson::is_quiz_enabled() |
Determines if a quiz is enabled for the lesson |
includes/models/model.llms.access.plan.php: LLMS_Access_Plan::is_free() |
Determines if a plan is marked ar free This only returns the value of the setting and should not be used to check if payment is required (when using a coupon for example) |
includes/models/model.llms.access.plan.php: LLMS_Access_Plan::is_on_sale() |
Determine if a plan is *currently* on sale |
includes/models/model.llms.access.plan.php: LLMS_Access_Plan::has_trial() |
Determine if the plan has a trial offer One-time payments can’t have a trial, so the plan must have a frequency greater than 0 |
includes/models/model.llms.quiz.attempt.question.php: LLMS_Quiz_Attempt_Question::is_correct() |
Determine if a question is correct |
includes/models/model.llms.add-on.php: LLMS_Add_On::get_license_status() |
Determine the status of an addon’s license |
includes/models/model.llms.question.php: LLMS_Question::get_auto_grade_type() |
Retrieve the type of automatic grading that can be performed on the question |
includes/models/model.llms.coupon.php: LLMS_Coupon::has_trial_discount() |
Determine if trial amount discount is enabled for the coupon |
includes/models/model.llms.quiz.attempt.php: LLMS_Quiz_Attempt::get_new_questions() |
Retrieve an array of blank questions for insertion into a new attempt during initialization |
includes/models/model.llms.quiz.attempt.php: LLMS_Quiz_Attempt::answer_question() |
Answer a question |
includes/class.llms.person.handler.php: LLMS_Person_Handler::login() |
Login a user |
includes/class.llms.person.handler.php: LLMS_Person_Handler::register() |
Perform validations according to the registration screen and registers a user |
includes/privacy/class-llms-privacy-erasers.php: LLMS_Privacy_Erasers::order_data() |
Erase student order data by email address |
includes/privacy/class-llms-privacy-erasers.php: LLMS_Privacy_Erasers::postmeta_data() |
Erase student postmeta data by email address |
includes/privacy/class-llms-privacy-erasers.php: LLMS_Privacy_Erasers::quiz_data() |
Erase student quiz attempt data by email address |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_student_dashboard() |
Output the LifterLMS Student Dashboard |
includes/functions/llms-functions-access-plans.php: llms_insert_access_plan() |
Create or update an access plan. |
includes/functions/llms.functions.order.php: llms_setup_pending_order() |
Setup a pending order which can be passed to an LLMS_Payment_Gateway for processing. |
includes/class.llms.ajax.handler.php: LLMS_AJAX_Handler::llms_update_access_plans() |
AJAX handler for creating and updating access plans via the metabox on courses & memberships |
includes/controllers/class.llms.controller.lesson.progression.php: LLMS_Controller_Lesson_Progression::quiz_maybe_prevent_lesson_completion() |
Before a lesson is marked as complete, check if all the lesson’s quiz requirements are met |
includes/admin/class-llms-admin-review.php: LLMS_Admin_Review::dismiss() |
AJAX callback for dismissing the notice |
includes/admin/post-types/meta-boxes/class.llms.meta.box.order.enrollment.php: LLMS_Meta_Box_Order_Enrollment::output() |
Function to field WP::output() method call. |
includes/admin/post-types/meta-boxes/class.llms.meta.box.voucher.export.php: LLMS_Meta_Box_Voucher_Export::export() | |
vendor/lifterlms/lifterlms-blocks/includes/class-llms-blocks-migrate.php: LLMS_Blocks_Migrate::should_migrate_post() |
Determine if a post should be migrated. |
vendor/lifterlms/lifterlms-blocks/includes/functions-llms-blocks.php: llms_blocks_is_post_migrated() |
Determine if a post is migrated |