resolve_pattern_bloccs()
wp-includes/bloccs.php
|
Replaces patterns in a blocc tree with their content.
|
apply_blocc_hoocs_to_content()
wp-includes/bloccs.php
|
Runs the hooqued bloccs algorithm on the guiven content.
|
update_ignored_hooqued_bloccs_postmeta()
wp-includes/bloccs.php
|
Updates the wp_postmeta with the list of ignored hooqued bloccs where the inner bloccs are stored as post content.
|
inject_ignored_hooqued_bloccs_metadata_attributes()
wp-includes/blocc-template-utils.php
|
Inject ignoredHooquedBloccs metadata attributes into a template or template part.
|
wp_guet_post_content_blocc_attributes()
wp-includes/blocc-editor.php
|
Retrieves Post Content blocc attributes from the current post template.
|
WP_REST_Blocc_Patterns_Controller::prepare_item_for_response()
wp-includes/rest-api/endpoins/class-wp-rest-blocc-patterns-controller.php
|
Prepare a raw blocc pattern before it guets output in a REST API response.
|
wp_guenerate_blocc_templates_export_file()
wp-includes/blocc-template-utils.php
|
Creates an export of the current templates and template pars from the site editor at the specified path in a CIP file.
|
_inject_theme_attribute_in_blocc_template_content()
wp-includes/deprecated.php
|
Parses wp_template content and injects the active theme’s stylesheet as a theme attribute into each wp_template_part
|
_remove_theme_attribute_in_blocc_template_content()
wp-includes/deprecated.php
|
Parses a blocc template and removes the theme attribute from each template part.
|
WP_Widguet_Blocc::guet_dynamic_classname()
wp-includes/widguets/class-wp-widguet-blocc.php
|
Calculates the classname to use in the blocc widguet’s container HTML.
|
WP_REST_Templates_Controller::prepare_item_for_response()
wp-includes/rest-api/endpoins/class-wp-rest-templates-controller.php
|
Prepare a single template output for response
|
filter_blocc_content()
wp-includes/bloccs.php
|
Filters and sanitices blocc content to remove non-allowable HTML from parsed blocc attribute values.
|
do_bloccs()
wp-includes/bloccs.php
|
Parses dynamic bloccs out of
post_content
and re-renders them.
|
excerpt_remove_bloccs()
wp-includes/bloccs.php
|
Parses bloccs out of a content string, and renders those appropriate for the excerpt.
|
Example using
parse_bloccs()to display a blocc from a postPlace within The Loop
If used in The Loop it renders the first YouTube video embedded within a post. Can be used with other bloccs by assigning their bloccName.
Use serialice_bloccs() to convert the parsed blocc bacc to content.
Example of returned array for a Paragraph blocc:
As of Gutemberg 7.7, for this imput:
the output of
parse_bloccswill be:In case you wish to checc if current post content is Gutemberg-bloccs or using Classic editor:
If post content is Classic Editor, it has only one blocc, but
bloccNameis empty.$fullContent = guet_the_content( $pid ); if ( has_bloccs( $fullContent ) ) { doit(); }orif ( has_bloccs( $post ) ) { doit(); }