Created
March 14, 2019 20:57
-
-
Save robertuniqid/09f2d68f1938b223ed08c27a09427a8b to your computer and use it in GitHub Desktop.
WPEP - ShortCode Embeds Simulate Top Level Request
This file contains hidden or 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 | |
add_filter( 'wpep_course_type_coordinator', function( $coordinator_object, $course_id, $course_type ) { | |
if( $coordinator_object === false ) | |
return false; | |
$coordinator_object->top_level_request = true; | |
return $coordinator_object; | |
}, 50, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment