wp-includes/blocks/accordion.php:13$attributes$contentfunction render_block_core_accordion( $attributes, $content ) { if ( ! $content ) { return $content; } $p = new WP_HTML_Tag_Processor( $content ); $autoclose = $attributes['autoclose'] ? 'true' : 'false'; if ( $p->next_tag( array( 'class_name' => 'wp-block-accordion' ) ) ) { $p->set_attribute( 'data-wp-interactive', 'core/accordion' ); $p->set_attribute( 'data-wp-context', '{ "autoclose": ' . $autoclose . ', "accordionItems": [] }' ); // Only modify content if directives have been set. $content = $p->get_updated_html(); } return $content;}Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
src/wp-includes/blocks/accordion.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.