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?
- Is there any resource to explain all decisions made on WordPress?
- Where in WordPress core is the method or function that reads the style CSS header?
- Difference between core and processor
- Azure VM Core vs vCPU
- What is socket, core, threads, CPU?
- Explanation of update_post_(meta/term)_cache
- What is the role and history of the $content_width global variable?
- Easiest Way to Create a Patch for Submission to WordPress Core?
- WordPress 5.3 update causes media library file upload to break – Cannot convert undefined or null to object
- How to disable core and plugin updates
- Looking for WordPress System Diagrams
- What is in media-template.php, and how does it work?
- Update to older wordpress version from admin?
- Why does get_term() require taxonomy? Are term_ids not unique?
- What is a “protected” post status?
- “Unexpected error” on update requests
- Clarification on filters and hooks
- What’s $object->filter for?
- What is the difference between update_post_meta and update_postmeta hooks?
- is it possible to replace the use of gd_lib with imagick or ImageMagick?
- Understanding SHORTINIT with WordPress 5
- WordPress get_posts function, 1300 lines long
- Are the WordPress Core CSS styles really all nessesary?
- Managing WP Core & Plugin Updates for Clients
- How do I use the WP image functions in a page template?
- Passing a hardcoded page/post ID into `get_post`
- Change the login button on the login page
- HowTo: Add Class to Sidebar Widget List-Items
- WP_Site_Query vs. WP_Network_Query in WordPress 4.6
- Slow wp_term_relationships query
- How would I compare and remove hacks to core?
- How Does WordPress Uninclude/Deactivate A Plugin?
- Changing subdir multisite install to subdir core directory structure
- 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?
- Find out if there is a available core update?
- How to listen to color changes on the color picker?
- Updating WordPress – the best approach (updating wp core, plugins and db)
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- Change Password Hint
- How to remove X-Frame-Options: SAMEORIGIN” from WordPress?
- Best way to extends core classes in theme?
- How to Modify a Widgets UL and/or LI Classes
- Conditional tag is_page with a custom post type
- How to remove wordpress admin bar in dashboard
- Why does my hand-written plugin installer fail to find `request_filesystem_credentials`?
- explanation for activate_plugin function in wordpress core
- Script dependencies for post.js
- Why use while over if in single wordpress posts?
- Headers already sent – WordPress core
- How to show updated edit on preview URL without clicking preview button
- How long do users stay logged in if they DON’T check remember me?
- Question about the template-loader.php file
- Changing a WordPress core function without hacking core
- Disable feeds for specific custom post types
- How can i know when i can execute what functions of wordpress?
- How does WP detect format type (and can I make use of this)?
- What is the criteria for pluggable functions?
- remove rel=next on home page but not others
- Render Selected Categories in Admin Edit Post Screen differently
- Replacing the default content created while the site creation