Support

Account

Home Forums ACF PRO Disable certain custom blocks on certain custom page

Unread

Disable certain custom blocks on certain custom page

  • I would like to disable certain custom blocks on certain custom page edit pages.
    I do not want to disable them completely, but would like to be able to load them in the template for custom posts.
    I only want to control that the editor cannot select & insert a specific custom block.

    Is this possible?
    By the way, the method using add_filter( ‘allowed_block_types_all’) could not solve this problem, because it controls the blocks that can be used by putting them in an array, which is not suitable when there are many blocks to use.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.