• Resolved Creatium

    (@creatium)


    Hi,

    I noticed that if I disable WP Guternberg block editor in posts, I start getting error in console:

    The block "wpdatatables/wpdatatables-gutenberg-block" must have a registered category.

    I use this code in functions.php to disable Gutenberg:

    add_filter('use_block_editor_for_post', '__return_false', 1);

    Plugin version 2.8.3

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hello there.

    You need to change that in file wp-content/plugins/wpdatatables/source/GutenbergBlock.php

    On line 24, you’ll find this:

    add_action('init', function () use ($class) {
    You need to replace it with this:

    add_action( 'enqueue_block_editor_assets', function () use ( $class ) {

    This will be updated with the next update, so you won’t need to worry about it anymore.

    Kind regards

    Thread Starter Creatium

    (@creatium)

    Thank you!

    Plugin Author wpDataTables

    (@wpdatatables)

    You’re welcome Creatium.

    If you have any further questions or issues, please feel free to reach out to us.

    Kind regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Guterberg disabled problem’ is closed to new replies.