Learndash Changing Tooltips

/**
 * Change group course tooltip
 */
add_filter( 'learndash_group_course_row_atts', function( $data_tooltip, $course_id, $group_id, $user_id ) {
    
    if ( ! empty( $data_tooltip ) ) {
        $data_tooltip = 'data-ld-tooltip="' . esc_html__( "You don't currently have access to this content", 'learndash' ) . '"';
    }
    return $data_tooltip;

}, 10, 4 );

/**
 * Change lesson tooltip
 */
add_filter( 'learndash_lesson_row_atts', function( $data_tooltip, $lesson_id, $course_id, $user_id ) {

    if ( ! empty( $data_tooltip ) ) {
        $data_tooltip = 'data-ld-tooltip="' . esc_html__( "You don't currently have access to this content", 'learndash' ) . '"';
    }
    return $data_tooltip;

}, 10, 4 );

/**
 * Change quiz tooltip
 */
add_filter( 'learndash_quiz_row_atts', function( $data_tooltip ) {

    if ( ! empty( $data_tooltip ) ) {
        $data_tooltip = 'data-ld-tooltip="' . esc_html__( "You don't currently have access to this content", 'learndash' ) . '"';
    }
    return $data_tooltip;

} );