Talemy Course Sections

Add custom course sections

/**
 * Customize course sections
 */
add_action( 'talemy_course_sections', 'add_custom_section' );

function add_custom_section( $sections ) {
    $sections['custom'] = esc_html__( 'Custom', 'talemy' );
    return $sections;
}

/**
 * Output custom section content
 * 
 * hook: talemy_course_section_{custom_section_slug}
 */
add_action( 'talemy_course_section_custom', 'add_custom_section_content' );

function add_custom_section_content( $course_id ) {
    echo 'custom section content';
}