This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp_logout','auto_redirect_external_after_logout'); | |
function auto_redirect_external_after_logout(){ | |
wp_redirect( 'https://www.growlearnteach.com' ); | |
exit(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* WPEP Assessment User Data | |
* The same concept for Settings as Key -> Value, will be used by WPEP, but different, to optimize data queries. | |
* This event does not trigger if the previous $value has not changed during a save. | |
* STRING $key <- the key, explained bellow | |
* STRING|INT $value <- the value, explained bellow | |
* INT $post_id <- the Assessment ID for which this data belongs ( always present ) | |
* INT $question_id <- the question id for which this data belongs ( sometimes available ) | |
* INT $question_answer_id <- the question answer id, for example checkbox / select / radio field types ( sometimes available ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Course Lesson Completed | |
* $lesson_id <- Lesson ID, from the WPEP Lesson Table | |
* $is_completed <- true/false | |
* $user_id <- the User that has completed the lesson, this is also triggered if it's 0 | |
*/ | |
do_action( "wpep_user_activity_lesson_status", $lesson_id, $is_completed, $user_id ); | |
// How to Get The Course ID From the Lesson ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WPEP_Integration_Content_Library_Coordinator_Administration { | |
/** | |
* @var WPEP_Content_Library_Integration | |
*/ | |
protected $_controller; | |
public function init( $controller ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once( WPEP_BASE_PATH . "/lib/integrations/Content_Library/Administration.php" ); | |
abstract class WPEP_Content_Library_Integration { | |
public $control_access_based_display = []; | |
public $meta_box_active = false; | |
public $meta_box_title = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body.single-courses .sidebar-right .wf-container-main { | |
grid-template-columns : 100% !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WPEPAddOnExample extends WPEP_AddOn_Integration { | |
protected static $_instance; | |
/** | |
* @return WPEP_AddOn_Integration | |
*/ | |
public static function instance() { | |
if( self::$_instance === null ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$meta_boxes = apply_filters( "wpep_administration_course_metaboxes", $meta_boxes ); | |
$meta_boxes = apply_filters( "wpep_administration_ebook_metaboxes", $meta_boxes ); | |
$meta_boxes = apply_filters( "wpep_administration_video_metaboxes", $meta_boxes ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
do_action( 'wpep_before_template_part', $template_name, $template_path, $located, $args ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
do_action( 'wpep_after_template_part', $template_name, $template_path, $located, $args ); |
NewerOlder