🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux in-mum-web1398.main-hosting.eu 4.18.0-553.107.1.lve.el8.x86_64 #1 SMP Tue Feb 24 21:12:31 UTC 2026 x86_64
👤 User: u344267476 (344267476)
🐘 PHP: 8.3.30
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/u344267476/domains/nawaidir.com.pk/public_html/epaper
$

📄 accordion.php

📁 Path: /home/u344267476/domains/greenpost.com.pk/public_html/wp-includes/blocks/accordion.php
📊 Size: 1.12 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php
/**
 * Server-side rendering of the `core/accordion` block.
 *
 * @package WordPress
 * @since 6.9.0
 *
 * @param array $attributes The block attributes.
 * @param string $content The block content.
 *
 * @return string Returns the updated markup.
 */
function 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;
}

/**
 * Registers the `core/accordion` block on server.
 *
 * @since 6.9.0
 */
function register_block_core_accordion() {
	register_block_type_from_metadata(
		__DIR__ . '/accordion',
		array(
			'render_callback' => 'render_block_core_accordion',
		)
	);
}
add_action( 'init', 'register_block_core_accordion' );
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨