Uncanny Groups Course Reports LearnDash Login Timestamp to Date

add_filter( ‘ulgm_group_course_report_user_data’, function ( $user_data, $user_id, $group_id, $course_id ) { $date_format = get_option( ‘date_format’ ); $login_timestamp = get_user_meta( $user_id, ‘learndash-last-login’, true ); // Add additional keys and add data like $user_data[‘learndash-last-login’] = wp_date( $date_format, $login_timestamp ); return $user_data; }, 99,…Continue reading

Custom Column Values (Examples) for Uncanny Groups Course Reports

add_filter( ‘ulgm_group_course_report_user_data’, function ( $user_data, $user_id, $group_id, $course_id ) { // Add additional keys and add data like $user_data[‘learndash-last-login’] = get_user_meta( $user_id, ‘learndash-last-login’, true ); $user_data[‘age’] = get_user_meta( $user_id, ‘age’, true ); $user_data[‘organization’] = get_user_meta( $user_id, ‘organization’, true ); $user_data[‘job_title’]…Continue reading

Custom Columns Uncanny Groups Course Reports

add_filter( ‘ulgm_group_course_report_columns’, function ( $columns ) { //Add new column(s) $columns[‘learndash-last-login’] = ‘Last Login’; $columns[‘age’] = ‘Age’; $columns[‘organization’] = ‘Organization’; $columns[‘job_title’] = ‘Job Title’; return $columns; }, 99, 1 );Continue reading

Reusable Blocks accessible in backend

/** * Reusable Blocks accessible in backend * */ function be_reusable_blocks_admin_menu() { add_menu_page( ‘Reusable Blocks’, ‘Reusable Blocks’, ‘edit_posts’, ‘edit.php?post_type=wp_block’, ”, ‘dashicons-editor-table’, 22 ); } add_action( ‘admin_menu’, ‘be_reusable_blocks_admin_menu’ );Continue reading