WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Customize_Themes_Section::render_template() protected WP 4.9.0

Render a themes section as a JS template.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

The template is only rendered by PHP once, so all actions are prepared at once on the server side.

{} Это метод класса: WP_Customize_Themes_Section{}

Хуков нет.


null. Ничего.


// protected - в коде основоного (родительского) или дочернего класса
$result = $this->render_template();

Список изменений

С версии 4.9.0 Введена.

Код WP_Customize_Themes_Section::render_template() WP 5.8.2

protected function render_template() {
	<li id="accordion-section-{{ data.id }}" class="theme-section">
		<button type="button" class="customize-themes-section-title themes-section-{{ data.id }}">{{ data.title }}</button>
		<?php if ( current_user_can( 'install_themes' ) || is_multisite() ) : // @todo Upload support. ?>
		<?php endif; ?>
		<div class="customize-themes-section themes-section-{{ data.id }} control-section-content themes-php">
			<div class="theme-overlay" tabindex="0" role="dialog" aria-label="<?php esc_attr_e( 'Theme Details' ); ?>"></div>
			<div class="theme-browser rendered">
				<div class="customize-preview-header themes-filter-bar">
					<?php $this->filter_bar_content_template(); ?>
				<?php $this->filter_drawer_content_template(); ?>
				<div class="error unexpected-error" style="display: none; ">
							/* translators: %s: Support forums URL. */
							__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
							__( 'https://wordpress.org/support/forums/' )
				<ul class="themes">
				<p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
				<p class="no-themes-local">
						/* translators: %s: "Search WordPress.org themes" button text. */
						__( 'No themes found. Try a different search, or %s.' ),
						sprintf( '<button type="button" class="button-link search-dotorg-themes">%s</button>', __( 'Search WordPress.org themes' ) )
				<p class="spinner"></p>