wordpress loop through object code example
Example: wordpresss loop through object
foreach ( $lessons as $lesson ){
if( $lesson['status'] == 'completed' ){
echo $lesson['post']->post_title;
}
}
foreach ( $lessons as $lesson ){
if( $lesson['status'] == 'completed' ){
echo $lesson['post']->post_title;
}
}