• Resolved antholucas

    (@antholucas)


    Hi there ??

    I would like to disable Joinchat on the pages created with Learndash (there are custom post types).

    Unfortunately, in the Joinchat settings, in the visibility tab, these Learndash CPT don’t appear so I cannot deactivate the visibility.

    Anyone could help with CSS code maybe?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Creame

    (@creapuntome)

    Hi, You can use "joinchat_custom_post_types" filter to add extra CPTs undetected by default by Joinchat.

    Try adding this to your theme functions.php (note: not sure about Learndash CPT name)

    add_filter( 'joinchat_custom_post_types', function( $cpts ) {
      return array_merge( $cpts, array( 'courses' ) );
    } );
    Thread Starter antholucas

    (@antholucas)

    Thank you very much! It works perfectly ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable on Learndash pages (custom post type)’ is closed to new replies.