SFWD_LMS
Class to create the SFWD_LMS instance.
Description Description
Source Source
File: includes/class-ld-lms.php
Methods Methods
- __construct — Set up properties and hooks for this class
- activate — Fire on plugin activation
- add_course_tax_entry — Insert course name as a term on course publish
- add_post_types — Sets up CPT's and creates a 'new SFWD_CPT_Instance()' of each
- add_query_vars — Add 'sfwd-lms' to query vars Fired on filter 'query_vars'
- add_tag_init — Register Courses, Lessons, Quiz CPT's and set up their admin columns on post list view
- all_plugins_proc — Called from the 'all_plugins' filter. This is called from the Plugins listing screen and will let us set out internal flag 'all_pluguns_called' so we know when (and when not) to add the legacy pluin paths
- column_term_number — Set column term number
- content_filter_control — Function to dynamically control the 'the_content' filtering for this post_type instance.
- course_display_settings — Set up course display settings — deprecated
- course_export_init — Exports course progress data to CSV file
- course_progress_data
- courses_filter_submit — Course Export Button submit data
- cpt_loop_filter — Callback for add_filter 'sfwd_cpt_loop' There is no apply_filters or php call to execute this function
- deactivate
- delete_blog — Called when Multisite blog is deleted this is used to remove any custom DB tables.
- get_course_info — Returns output of users course information for bottom of profile
- get_post_args_section
- get_template — Get LearnDash template and pass data to be used in template
- get_template_paths
- i18nize — Loads the plugin's translated strings
- init_ld_templates_dir — Add support for alternate templates directory.
- ld_course_category_row_actions
- learndash_course_price_billing_cycle_html — Billing Cycle field html output for courses
- learndash_course_price_billing_cycle_save — Updates course price billy cycle on save Fires on action 'save_post'
- lesson_display_settings — Set up lesson display settings — deprecated
- load_template_functions — Load functions used for templates
- option_active_plugins_proc — This is called from the get_options() function for the option 'active_plugins'. Using this filter we can append our legacy plugins directories allowing other plugins to check via is_plugin_active() This will protect that connection of LD is installed in a non-standard plugin directory.
- parse_ipn_request — Include PayPal IPN if request is for PayPal IPN Fired on action 'parse_request'
- paypal_rewrite_rules — Adds paypal to already generated rewrite rules Fired on action 'generate_rewrite_rules'
- pre_current_active_plugins_proc — Called from the 'pre_current_active_plugins' action. This is called after the Plugins listing checks for valid plugins. The will let us unset our internal flag 'ALL_PLUGINS_CALLED'.
- pre_update_option_active_plugins — This is called from the update_options() function for the option 'active_plugins'. Using this filter we can remove our legacy plugins directories we added via the option_active_plugins_proc filter.
- pre_update_site_option_active_sitewide_plugins
- question_display_settings — Set up question display settings
- quiz_display_settings — Set up quiz display settings — deprecated
- quiz_export_init — Export quiz data to CSV
- quiz_filter_submit — Quiz Export Button submit data
- select_a_certificate
- select_a_course
- select_a_group
- select_a_lesson — Makes wp_query to retrieve lessons a course
- select_a_lesson_ajax — Retrieves lessons for a course to populate dropdown on edit screen
- select_a_lesson_or_topic — Makes wp_query to retrieve lessons or topics for a course
- select_a_lesson_or_topic_ajax — Retrieves lessons or topics for a course to populate dropdown on edit screen
- select_a_quiz — Makes wp_query to retrieve quizzes a course
- select_a_quiz_ajax — Retrieves quizzes for a course to populate dropdown on edit screen
- site_option_active_sitewide_plugins_proc
- tax_registration — Register taxonomies for each custom post type
- tax_term_count — Update count of posts with a term
- topic_display_settings — Set up topic display settings — deprecated
- trans_export_init — Export transcations to CSV file
- trans_filter_submit — Transaction Export Button submit data
- trigger_actions
- upgrade_plugin
- usermeta_shortcode — [usermeta] shortcode
- wp_shutdown
- wpmu_new_blog — Called when new Multisite blog is created this is used to trigger the activate logic