There’s no definitive list that I’m aware of. If you want to get the markup for a block the only reliable way to do that is to insert it into the editor and then copy the result to the clipboard.
You cannot assume that all blocks are “<!-- wp:
plus post-title
plus optional attributes {tag: something}
plus /-->
“, as many blocks also include HTML that they depend on. For example, the image block looks like this:
<!-- wp:image {"id":1934,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://example.test/wp-content/uploads/2023/01/image-1.jpg" alt="" class="wp-image-1934"/></figure>
<!-- /wp:image -->
Just using the <!--
part would not be sufficient.
Related Posts:
- What’s the difference between get_home_path() and ABSPATH?
- Modifying WordPress core files
- Why do some core functions get wp_ while others do not? What’s the rule?
- $GLOBALS array for WordPress
- What are custom_css and customize_changeset used for?
- IP address whitelist to update WordPress core and plugins
- What are some reasons why you should not hack WordPress core files?
- How To/What triggers a WordPress auto update?
- Rewriting a core function?
- What is the purpose of this line of code in wp_trim_excerpt? [closed]
- What CSS minifier does WP core use?
- What’s $GLOBALS[‘wp_settings’][‘media’][’embeds’]?
- Function to change a label (Username) in a core WordPress File (wp-includes/general-template.php)
- How do I set a custom WordPress update repository?
- WordPress classes explained
- No longer able to attach S3 bucket files to emails being sent by WordPress due to PHPMailer security update
- What problems maybe happen if I remove “wp-” prefix from wordpress folders and files?
- WP Core: Where are terms populated for the admin edit screen?
- What is the WP_Internal_Pointers core class?
- How to contribute to WordPress Core using Tortoise SVN?
- Create a patch using TortoiseSVN
- Loading WP core Thickbox through frontend
- Isn’t requiring a file before it’s loaded by WordPress itself a symptom of bad code? [closed]
- How to find out where the data.model is?
- Why WordPress Core Functions Not Using function_exists()?
- how does the rendering works?
- When is the wp-mail.php in the WP root requested?
- Is the information returned by get_bloginfo( ‘version’ ) always the same as the one in version.php?
- How to add a forward slash to the end of wordpress home?
- Using native wp image support instead of timthumb
- Should /wp-includes/js/* folder be blocked in robots.txt file for a WordPress website?
- Can mediaelement-and-play core JS be dequeued?
- WordPress auto update for core but use local package
- WordPress 4.8 – Can’t find variable: wp
- What is responsible for triggering “robots-template.php” file or “wp_robots_noindex()” core function out of it?
- Add image or video tags to WP Sitemap
- When do we use wp_slash?
- Difference between core and processor
- How to disable core and plugin updates
- Looking for WordPress System Diagrams
- Clarification on filters and hooks
- How Does WordPress Uninclude/Deactivate A Plugin?
- How to disable `SQL_CALC_FOUND_ROWS` [duplicate]
- Why are double-periods (“..”) invalid in a WordPress image filename?
- Does anyone have a visual breakdown of core hooks and when they are fired?
- Loading template files from a subfolder in my theme?
- How to listen to color changes on the color picker?
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- Conditional tag is_page with a custom post type
- Why does my hand-written plugin installer fail to find `request_filesystem_credentials`?
- Script dependencies for post.js
- Why use while over if in single wordpress posts?
- Headers already sent – WordPress core
- How long do users stay logged in if they DON’T check remember me?
- Changing a WordPress core function without hacking core
- remove rel=next on home page but not others
- WP_Remote_Get Not working
- How to Dequeue All WordPress Assets
- Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions
- Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?
- What’s the purpose / logic of split_the_query in WP_Query->get_posts
- Changing WordPress core without hacking core
- Least expensive way to get table prefix in multisite installation
- Is the root index.php file part of the Core?
- What is a rock solid development and deployment workflow? [closed]
- WordPress Full Site Editing: How can I access my posts listing page?
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- Who updates the wp-admin/core file?
- getting notifications about updates only in the “core” page
- Best way to salvage a very old WP site
- Usage of var keyword in the core
- How to remove a settings section from the Theme Customization API preview pane?
- Does WordPress do any internal caching if no plugin installed?
- wordpress wp-admin/includes/shema.php file has been modify alone
- Notice on core function
- wp_insert_post always returns 0 on one site, extensive testing done, can’t get to the bottom
- Internal Redirections?
- Load WordPress core but with specific plugins
- WP-CLI: detect altered core files and restore them automatically
- wp-cli core install unknown: fatal: file /etc/postfix/main.cf: parameter mail_owner: user postfix has same user ID as _postfix
- “Conditional query tags do not work before the query is run. Before > then, they always return false. “
- How does WordPress get the upgrade URL?
- WordPress core update fails – no issues with plugin updates
- Should you directly edit Template Parts and Templates from themes?
- Correct way to make a custom block theme responsive
- How do I add custom CSS animations for specific Gutenberg blocks?
- How to add custom menu to block theme?
- Full site editor, hard-coded IDs in query blocks, and staging/dev servers
- Is it possible to use a html page for homepage only, in WordPress Full Site Editing?
- Disable auto-embed feature when pasting links in Gutenberg editor?
- Get postId in a wordpress pattern file?
- After a while attachment meta data is missing “sizes” data
- Prevent executing query for wp_global_styles
- In Full Site Editing, how do I get the templates I created to appear in the site editor when populating a new page?
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Where are the full site settings stored?
- Calling get_header() with installed FSE theme
- Disabling Full Site Editor (FSE)
- WPML is blocking WP core update
- Block to show posts from same category