WP_Customize_Partial::render_callback()publicWP 4.5.0

Note that this method may echo the partial or return the partial as a string or array, but not both. Output buffering is performed when this is called. Subclasses can override this with their specific logic, or they may provide an 'render_callback' argument to the constructor.

This method may return an HTML string for straight DOM injection, or it may return an array for supporting Partial JS subclasses to render by applying to client-side templating.

{} It's a method of the class: WP_Customize_Partial{}

No Hooks.

Return

String|Array|false.

Usage

$WP_Customize_Partial = new WP_Customize_Partial();
$WP_Customize_Partial->render_callback( $partial, $context );
$partial(WP_Customize_Partial) (required)
Partial.
$context(array)
Context.
Default: array()

Changelog

Since 4.5.0 Introduced.

Code of WP_Customize_Partial::render_callback() WP 6.0

public function render_callback( WP_Customize_Partial $partial, $context = array() ) {
	unset( $partial, $context );
	return false;
}