Class Sensei_Main
Responsible for loading Sensei and setting up the Main WordPress hooks.
public
|
|
protected
|
|
public static
WooThemes_Sensei
|
|
public static
|
#
activation_flush_rules( $plugin )
This function is linked into the activation hook to reset flush the urls to ensure Sensei post types show up. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
ensure_post_thumbnails_support( )
Ensure that "post-thumbnails" support is available for those themes that don't register it. |
public
|
|
public
string
|
|
public
integer
|
|
public
boolean
|
|
public
boolean
|
#
access_settings( )
Check if visitors have access permission. If the "access_permission" setting is active, do a log in check. |
public
|
|
public
array
|
#
sensei_count_comments( array $comments, integer $post_id )
Filtering wp_count_comments to ensure that Sensei comments are ignored |
public
|
|
public
string
|
|
public
|
|
public
null
|
#
jetpack_latex_support( )
Checks that the Jetpack Beautiful Maths module has been activated to support LaTeX within question titles and answers |
public
null
|
#
wp_quicklatex_support( )
Checks that the WP QuickLaTeX plugin has been activated to support LaTeX within question titles and answers |
public
|
|
public
|
#
disable_sensei_modules_extension( )
Tell the user to that the modules extension is no longer needed. |
public
|
|
public
|
#
initiate_rewrite_rules_flush( )
Calling this function will tell Sensei to flush rewrite rules on the next load. |
public
|
#
sensei_woocommerce_email_course_details( WC_Order $order )
sensei_woocommerce_email_course_details adds detail to email |
public
|
|
public
|
|
public
|
#
sensei_woocommerce_complete_order( integer $order_id = 0 )
sensei_woocommerce_complete_order description |
public
|
|
public
|
#
sensei_activate_subscription( integer $order_id = 0 )
sensei_activate_subscription runs when a subscription product is purchased |
public
boolean|integer
|
#
woocommerce_course_update( integer $course_id = 0, array/Object $order_user = array() )
If WooCommerce is activated and the customer has purchased the course, update Sensei to indicate that they are taking the course. |
public
WC_Product
|
#
sensei_get_woocommerce_product_object( integer $wc_product_id = 0, string $product_type = '' )
Returns the WooCommerce Product Object |
public
|
|
public
boolean
|
#
disable_guest_checkout( boolean $guest_checkout )
Disable guest checkout if a course product is in the cart |
public
string
|
#
virtual_order_payment_complete( string $order_status, integer $order_id )
Change order status with virtual products to completed |
public
array
|
|
public
string
|
#
get_settings_link( $plugin_id = null )
Returns the "Configure" plugin action link to go directly to the plugin settings page (if any) |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
boolean
|
#
is_general_configuration_page( )
Returns true if the current page is the admin general configuration page |
public
string
|
#
get_general_configuration_url( )
Returns the admin configuration url for the admin general configuration page |
protected static
|
$_instance
$_instance to the the main and only instance of the Sensei class. |
#
null
|
public
|
$version
Main reference to the plugins current version |
|
public
string
|
$token
Public token, referencing for the text domain. |
#
'woothemes-sensei'
|
public
|
$plugin_url
Plugin url and path for use when access resources. |
|
public
|
$plugin_path
|
|
public
|
$template_url
|
|
public
|
$post_types
All Sensei sub classes. Currently used to access functionality contained within within Sensei sub classes e.g. Sensei()->course->all_courses() |
|
public
WooThemes_Sensei_Settings
|
$settings
|
|
public
WooThemes_Sensei_Course_Results
|
$course_results
|
|
public
|
$updates
|
|
public
WooThemes_Sensei_Course
|
$course
|
|
public
WooThemes_Sensei_Lesson
|
$lesson
|
|
public
WooThemes_Sensei_Quiz
|
$quiz
|
|
public
WooThemes_Sensei_Question
|
$question
|
|
public
WooThemes_Sensei_Admin
|
$admin
|
|
public
WooThemes_Sensei_Frontend
|
$frontend
|
|
public
|
$notices
|
|
public
WooThemes_Sensei_Grading
|
$grading
|
|
public
WooThemes_Sensei_Emails
|
$emails
|
|
public
WooThemes_Sensei_Learner_Profiles
|
$learner_profiles
|
|
public
|
$teacher
|
|
public
WooThemes_Sensei_Learners
|
$learners
|
|
public
array
|
$permissions_message
Global instance for access to the permissions message shown when users do not have the right privileges to access resources. |
|
public
|
$modules
Sensei Modules functionality |
|
public
|
$analysis
|