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
function lesson_get_video_tutorial() { | |
if ( 'lesson' === get_post_type() ) { | |
$lesson = new LLMS_Lesson( get_the_ID() ); | |
$display = false; | |
if ( $lesson->is_free() ) { | |
$display = true; |
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 | |
/* | |
* This file adds the custom tutorial post type single post template. | |
*/ | |
//* Add custom body class to the head | |
add_filter( 'body_class', 'centric_add_body_class' ); | |
function centric_add_body_class( $classes ) { | |
$classes[] = 'centric-pro-tutorial'; |
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 // Create the WP_User_Query object | |
$wp_user_query = new WP_User_Query( array( 'role' => 'subscriber' ) ); | |
// Get the users | |
$users = $wp_user_query->get_results(); | |
// Check for users | |
if (!empty($users)) | |
{ | |
// Loop through each user | |
foreach ($users as $user) | |
{ |