0

Let's assume that I have a music player block and it's working fine. I now want to add another block for playlists and I want to use this single player block in this block. Is it possible to import this block into my playlist or should I just create a duplicate of all files in my playlist block?

1 Answer 1

0

Yes, you can create custom blocks with InnerBlocks. If you only want the parent block to include music player blocks, you can define that in ALLOWED_BLOCKS. https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/

1
  • Actually, I don't want the users to be able to use the single player in the album player. I want to just use it in code. So when a user selects 3 music, it automatically creates an album player with this single player. Commented Jun 28, 2022 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.