Learndash Custom Meta

To override the default course levels or content types, please try to paste below code snippets to functions.php file in your child theme.

Custom Course Levels

/**
 * Custom Course Levels
 *
 * @param array $levels
 * @return array course levels
 */
function talemy_custom_course_levels( $levels ) {
    return array(
        'all' => esc_html__( 'All Levels', 'ld-custom-meta' ),
        'beginner' => esc_html__( 'Beginner', 'ld-custom-meta' ),
        'intermediate' => esc_html__( 'Intermediate', 'ld-custom-meta' ),
        'advanced' => esc_html__( 'Advanced', 'ld-custom-meta' )
    );
}

add_filter( 'ldcm_course_levels', 'talemy_custom_course_levels' );

Custom Content Types

/**
 * Custom Content Types
 *
 * @param array $types
 * @return array types
 */
function talemy_custom_content_types( $types ) {
    return array(
        'far fa-file-alt'     => esc_html__( 'Text', 'ld-custom-meta' ),
        'fas fa-play-circle'  => esc_html__( 'Video', 'ld-custom-meta' ),
        'fas fa-headphones'   => esc_html__( 'Audio', 'ld-custom-meta' ),
        'far fa-image'        => esc_html__( 'Image', 'ld-custom-meta' ),
        'fas fa-tv'           => esc_html__( 'Presentation', 'ld-custom-meta' ),
        'fas fa-edit'         => esc_html__( 'Assignment', 'ld-custom-meta' )
    );
}

add_filter( 'ldcm_content_types', 'talemy_custom_content_types' );