# LearnDash: Access Mode Column on the Courses Screen

> Shows each course's access mode (Open, Free, Buy now, Recurring or Closed) in a column on the Courses list, so you can check pricing at a glance.

- Type: PHP
- Runs: Admin only
- Category: [Courses & Community](https://wpide.com/library/category/learning/)
- Tags: learndash, admin, courses
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/learndash-access-mode-column/

## Code

```php
if ( ! defined( 'LEARNDASH_VERSION' ) ) {
    return;
}

add_filter( 'manage_sfwd-courses_posts_columns', function ( $columns ) {
    $columns['wpide_ld_access'] = 'Access';

    return $columns;
} );

add_action( 'manage_sfwd-courses_posts_custom_column', function ( $column, $course_id ) {
    if ( 'wpide_ld_access' !== $column ) {
        return;
    }

    $labels = array(
        'open'      => 'Open',
        'free'      => 'Free',
        'paynow'    => 'Buy now',
        'subscribe' => 'Recurring',
        'closed'    => 'Closed',
    );
    $type  = (string) learndash_get_setting( $course_id, 'course_price_type' );
    $price = (string) learndash_get_setting( $course_id, 'course_price' );

    echo esc_html( ( $labels[ $type ] ?? ucfirst( $type ) ) . ( $price && in_array( $type, array( 'paynow', 'subscribe' ), true ) ? ' (' . $price . ')' : '' ) );
}, 10, 2 );
```

## Notes

Reads the course's own setting; nothing is stored.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "LearnDash: Access Mode Column on the Courses Screen" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
