SFWD_CPT::deactivate()
Method: Deactivate
SFWD_CPT::deactivate Read More »
Filter Hook: Filters taxonomy arguments.
learndash_taxonomy_args Read More »
Method: Insert course name as a term on course publish
SFWD_LMS::add_course_tax_entry Read More »
Method: Sets up admin menu item for post type
SFWD_CPT::admin_menu Read More »
Filter Hook: Filters template file name.
learndash_template_filename Read More »
Class: Abstract class to setup LearnDash CPTs
Method: Register taxonomies for each custom post type
SFWD_LMS::tax_registration Read More »
Method: Registers the custom post type, adds filter to register taxonomy and flushes rewrite rules after registration
SFWD_CPT::add_post_type Read More »
Filter Hook: Filters file path for the learndash template being called.
learndash_template Read More »
Filter Hook: Filters template arguments.
ld_template_args_{$name} Read More »
Method: Get LearnDash template and pass data to be used in template
SFWD_LMS::get_template Read More »
Method: Called from the ‘all_plugins’ filter. This is called from the Plugins listing screen and will let us set our internal flag ‘all_plugins_called’ so we know when (and when not) to add the learndash plugin path
SFWD_LMS::all_plugins_proc Read More »
Method: 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’.
SFWD_LMS::pre_current_active_plugins_proc Read More »
Method: This is called from the get_options() function for the option ‘active_plugins’. Using this filter we can append our LearnDash plugin path, allowing other plugins to check via is_plugin_active() even if learndash is installed in a non-standard plugin directory.
SFWD_LMS::option_active_plugins_proc Read More »
Method: This is called from the update_options() function for the option ‘active_plugins’. Using this filter we can remove our plugin path we added via the option_active_plugins_proc filter.
SFWD_LMS::pre_update_option_active_plugins Read More »
Filter Hook: Filters value of lazy load per page for admin settings.
learndash_element_lazy_load_per_page Read More »
Method: Sets up CPT’s and creates a ‘new SFWD_CPT_Instance()’ of each
SFWD_LMS::add_post_types Read More »
Method: Makes wp_query to retrieve lessons or topics for a course
SFWD_LMS::select_a_lesson_or_topic Read More »
Filter Hook: Filters course quiz query arguments.
learndash_quiz_cours_post_options Read More »