Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Block Variations - Add PHP strategy to register block variations using get_block_type_variations hook #63182

Open
juanmaguitar opened this issue Jul 5, 2024 · 0 comments
Labels
[Type] Developer Documentation Documentation for developers

Comments

@juanmaguitar
Copy link
Contributor

Block Editor Handbook > Reference Guides > Block API Reference > Variations is lacking a description of how to add variations to a core block from PHP side

An approach that could be recommended from the docs is the use of the get_block_type_variations hook to add any custom variations to blocks on register-time.

This approach is the one used in Gutenberg

@Mamaduka Mamaduka added the [Type] Developer Documentation Documentation for developers label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Developer Documentation Documentation for developers
Projects
None yet
Development

No branches or pull requests

2 participants