Skip to content

Instantly share code, notes, and snippets.

@MrVibe
Created October 9, 2021 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrVibe/8311b6332895e24c1635ead586af4115 to your computer and use it in GitHub Desktop.
Save MrVibe/8311b6332895e24c1635ead586af4115 to your computer and use it in GitHub Desktop.
Add start date in Batch list in Courses [ v3 & v4 ]
add_action('wplms_batches_extras',function($batch_id){
$start_batch_date = groups_get_groupmeta($batch_id,'start_batch_date');
if(!empty($start_batch_date)){
echo 'STARTS '.wp_date( get_option( 'date_format' ), $start_batch_date );
}
},10,1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment