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
if ( ! $student ) { continue; }
Expand full source code Collapse full source code View on GitHub
Related #Related
Used By #Used By
Used By | Description |
---|---|
includes/class-llms-order-generator.php: LLMS_Order_Generator::validate_terms() |
Validates the site’s terms and conditions were submitted. |
includes/models/model.llms.user.certificate.php: LLMS_User_Certificate::get_background_image() |
Retrieve information about the certificate background image. |
includes/admin/settings/class.llms.settings.engagements.php: LLMS_Settings_Engagements::has_legacy_certificates() |
Determines if legacy certificate options should be displayed. |
includes/class-llms-awards-query.php: LLMS_Awards_Query::parse_args() |
Parse arguments needed for the query. |
includes/class.llms.frontend.assets.php: LLMS_Frontend_Assets::enqueue_content_protection() |
Enqueue inline copy prevention scripts. |
includes/admin/tools/class-llms-admin-tool-limited-billing-order-locator.php: LLMS_Admin_Tool_Limited_Billing_Order_Locator::get_order_csv() |
Retrieves an array representing a line in generated CSV for the given order. |
includes/class-llms-prevent-concurrent-logins.php: LLMS_Prevent_Concurrent_Logins::__construct() |
Private Constructor. |
includes/functions/llms-functions-forms.php: llms_get_form_title() |
Retrieve the title of a form at a given location. |
includes/forms/class-llms-forms-dynamic-fields.php: LLMS_Forms_Dynamic_Fields::add_password_strength_meter() |
Adds a password strength meter to a block list |
includes/forms/class-llms-form-templates.php: LLMS_Form_Templates::get_template_blocks() |
Retrieve a list of blocks for the given template |
includes/forms/class-llms-forms.php: LLMS_Forms::is_block_visible() |
Determine if a block is visible based on LifterLMS Visibility Settings. |
includes/forms/class-llms-forms-admin-bar.php: LLMS_Forms_Admin_Bar::get_current_location() |
Retrieve the form location for the current screen |
includes/forms/class-llms-form-field.php: LLMS_Form_Field::prepare_options() |
Prepare the fields options. |
includes/class.llms.view.manager.php: LLMS_View_Manager::enable_open_reg() |
Forces open registration on when previewing the registration form |
libraries/lifterlms-blocks/includes/class-llms-blocks-reusable.php: LLMS_Blocks_Reusable::rest_callback_update() |
Rest field update callback |
libraries/lifterlms-blocks/includes/class-llms-blocks-reusable.php: LLMS_Blocks_Reusable::rest_callback_get() |
Read rest field read callback |
libraries/lifterlms-rest/includes/server/class-llms-rest-access-plans-controller.php: LLMS_REST_Access_Plans_Controller::unset_subordinate_props() |
Remove all the properties that do not need to be set, based on other properties |
libraries/lifterlms-rest/includes/server/class-llms-rest-access-plans-controller.php: LLMS_REST_Access_Plans_Controller::prepare_object_for_response() |
Prepare a single object output for response. |
libraries/lifterlms-helper/includes/models/class-llms-helper-add-on.php: LLMS_Helper_Add_On::requires_license() |
Determines if the add-on requires a license |
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 |
libraries/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.order.php: LLMS_Order::can_be_retried() |
Determine if the order can be retried for recurring payments |
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/abstracts/abstract.llms.payment.gateway.php: LLMS_Payment_Gateway::log() |
Log messages if logging is enabled |
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/privacy/class-llms-privacy-erasers.php: LLMS_Privacy_Erasers::order_data() |
Erase student order 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/post-tables/class.llms.admin.post.table.orders.php: LLMS_Admin_Post_Table_Orders::manage_columns() |
Order post: Queries data based on column name. |
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() |
Export vouchers. |
libraries/lifterlms-blocks/includes/class-llms-blocks-migrate.php: LLMS_Blocks_Migrate::should_migrate_post() |
Determine if a post should be migrated. |
libraries/lifterlms-blocks/includes/functions-llms-blocks.php: llms_blocks_is_post_migrated() |
Determine if a post is migrated |
Changelog #Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |