Category: Admin
Custom Column Titles for Uncanny Groups Course Reports
add_filter( ‘ulgm_group_course_report_columns’, function ( $columns ) { //Add new column(s) $columns[‘custom_key’] = ‘My custom column’; return $columns; }, 99, 1 );Continue reading
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 Column Values 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[‘custom_value’] = get_user_meta( $user_id, ‘custom_value’, true ); return $user_data; }, 99, 4 );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
Custom Column Titles (Last Login) for Uncanny Groups Course Reports
add_filter( ‘ulgm_group_course_report_columns’, function ( $columns ) { //Add new column(s) $columns[‘leardash-last-login’] = ‘Last Login’; return $columns; }, 99, 1 );Continue reading
Customizer
add_action( ‘customize_register’, ‘__return_true’ );Continue reading
Blog filter
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