• Resolved krzxsiek

    (@krzxsiek)


    On my site, instead of the “Classic Editor” plugin, I use the function in the theme’s functions.php file

    add_filter('use_block_editor_for_post', '__return_false', 10);
    add_filter('use_widgets_block_editor', '__return_false');

    You probably didn’t consider that someone could restore the classic editor this way.
    I suspect that you’ve added some function that detects the existence of the “use_block_editor_for_post” and “use_widgets_block_editor” functions and then doesn’t display the “Search Exclude” meta box. I’d appreciate it if you could fix it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter krzxsiek

    (@krzxsiek)

    Okay, I solved the problem myself ??
    I located in class-backend.php what causes the removal of this box and added the following function in functions.php

    add_filter('use_block_editor_for_post_type', '__return_false', 10);

    So you don’t have to correct anything, but it would be good to describe it somewhere, unless my post helps others ?? Best regards

    JP

    (@policieuxjp)

    Same problem with metabox for me (but not doing the same trick as krzxsiek).

    I get a red error message while editing a post :

    “L’extension ? custom-sidebar-metabox ? a rencontré une erreur et ne peut être affichée.”

    English : The “custom-sidebar-metabox” extension has encountered an error and cannot be displayed.

    The “search exclude” metabox is not showing indeed.

    When disabling the plugin, the message disappears.

    I had the same issue and reverted to prior version for now.

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