WordPresss Loop Through Object

foreach ( $lessons as $lesson ){
 if( $lesson['status'] == 'completed' ){
 echo $lesson['post']->post_title;
 }
}

Leave a Comment