• Resolved Matt Scheidler

    (@matt6303)


    I am using Spectra for a specific set of blocks. I can toggle those blocks on, but cannot toggle off the “core” Spectra blocks. If this cannot be done in the WordPress UI, is there a filter available where I can turn off the blocks I don’t need?

Viewing 1 replies (of 1 total)
  • Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @matt6303,

    Thanks for getting in touch with us.

    You can use the below code to turn off the Spectra core blocks.

    add_filter('spectra_core_blocks', function() {
    return array('image');
    });

    In this case, image is the one consider as spectra core block and can not be disabled. If you want to add any other block just add it in same array separated by commas.

    Have a nice day!

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