• Resolved Denis

    (@denis_miller)


    Hi again,

    I have a problem. One of the plugins has extra logic to verify editable content.
    It means it’s failed when I use your editor 🙁

    Could you add some filter to exclude custom post types (post_type)?
    So I could add exclude types and enable default editor…

    Something like this

    add_filter(“markup_exlude_types”, function($types){
    $types[] = “sfwd-quiz”
    });

    /Denis

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pierre-Henri Lavigne

    (@peter202202)

    Hey @denis_miller how do you do ?

    I’ve just released V1.7.1. I didn’t go for the filters for now, just reorganized the code so you can use native WP features. In your theme you can use something like that now :

    
    add_action('init', function() {
      remove_post_type_support('post_type_slug', 'markup_markdown');
    });
    

    I only tested with Gutenberg but any other default editor should work. 🙂

    Keep in touch and best Regards,

    Peter

    Plugin Author Pierre-Henri Lavigne

    (@peter202202)

    @denis_miller It’s been a while, how do you do?

    I’ve just understood you were talking about sfwd (Learndash stuff) so I’ve tested on my side and it’s working as expected.

    If you are using un your theme’s functions.php something like this :

    
    	add_action('init', function() {
    		remove_post_type_support('sfwd-quiz', 'markup_markdown');
    	});
    

    Markdown will be disabled in favor of your default editor.

    Best,

    Peter

    Thread Starter Denis

    (@denis_miller)

    Hi, yep. It’s fine!

    Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter: disable for some post_types’ is closed to new replies.