• Resolved clerick44

    (@clerick44)


    Hello spectra team,

    Thank you for such an amazing product!

    We have recently started adding Spectra to existing sites where we are using the allowed_block_types hook and I have been struggling to find out how to enable Spectra.

    Thank you in advance for any help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support BSF- Mohsin Ghouri

    (@mohsinbsf)

    Hi @clerick44,

    Sorry for the inconvenience caused to you.

    Can you please provide more details of the issue so that we can assist you with the correct solution.

    Looking forward to hearing from you.

    Have a nice day!

    Thread Starter clerick44

    (@clerick44)

    We often use code similar to this:

    add_filter( 'allowed_block_types', 'custom_allowed_block_types' );

    to disable certain blocktypes in the editor. When we do this Spectra blocks are not enabled. For other plugins I can add the block slugs to the list such as ‘core/paragraph’, ‘core/image’ etc. I haven’t been able to find a way to maintain the filter and have spectra blocks appear without having the block slugs to add in.

    Thank you for your help!

    Thread Starter clerick44

    (@clerick44)

    Do you have any input on this topic?

    Plugin Support BSF- Mohsin Ghouri

    (@mohsinbsf)

    Hi @clerick44,

    You can use slug for Spectra block like uagb/block-name to enable specific block or use uagb/* enable all blocks.

    Hope this will resolve issue.

    Have a nice day!

    Plugin Support BSF- Mohsin Ghouri

    (@mohsinbsf)

    Hi @clerick44,

    It’s been long since we heard from you. I am going ahead to mark this as resolved.

    Please feel free to open a new thread in case of any other queries.

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Spectra and allowed_block_types’ is closed to new replies.