• Resolved Matteo

    (@matteofeduzi)


    Hi, I am testing locally with localwp.com your plugin which is great, but it was not working on post type other than post or pages even if gutenberg editor is used.

    How do I extend class detection on other post types using gutenberg?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joshua Gugun Siagian

    (@suabahasa)

    Hi @matteofeduzi,

    To extend the class detection for other post types on the Gutenberg, you can use the filter hook f!windpress/integration/gutenberg/compile:get_contents.post_types

    For example:

    <?php

    add_filter('f!windpress/integration/gutenberg/compile:get_contents.post_types', function($post_types) {

    // Add your custom post types here, for example:
    $post_types[] = 'my_custom_post_type';
    $post_types[] = 'my_another_custom_post_type';

    return $post_types;
    });

    Thread Starter Matteo

    (@matteofeduzi)

    Thank you, it works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.