skip to Main Content

Remove Content Blocks from Learn Dash Courses

Important: You can now do this via the WordPress Customizer, no need for a custom snippet!

add_filter( 'wpex_sfwd-courses_single_blocks', function( $blocks ) {
    unset( $blocks['media'] ); // remove media/featured image
    unset( $blocks['meta'] );  // remove meta
    return $blocks;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top