WordPress at a glance
function is not described

WP_Customize_Widgets::customize_dynamic_partial_args() public WP 4.5.0

Filters arguments for dynamic widget partials.

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

No Hooks.

Return

Array. (Maybe) modified partial arguments.

Usage

$WP_Customize_Widgets = new WP_Customize_Widgets();
$WP_Customize_Widgets->customize_dynamic_partial_args( $partial_args, $partial_id );
$partial_args(array/false) (required)
Partial arguments.
$partial_id(string) (required)
Partial ID.

Changelog

Since 4.5.0 Introduced.

Code of WP_Customize_Widgets::customize_dynamic_partial_args() WP 5.5.1

<?php
public function customize_dynamic_partial_args( $partial_args, $partial_id ) {
	if ( ! current_theme_supports( 'customize-selective-refresh-widgets' ) ) {
		return $partial_args;
	}

	if ( preg_match( '/^widget\[(?P<widget_id>.+)\]$/', $partial_id, $matches ) ) {
		if ( false === $partial_args ) {
			$partial_args = array();
		}
		$partial_args = array_merge(
			$partial_args,
			array(
				'type'                => 'widget',
				'render_callback'     => array( $this, 'render_widget_partial' ),
				'container_inclusive' => true,
				'settings'            => array( $this->get_setting_id( $matches['widget_id'] ) ),
				'capability'          => 'edit_theme_options',
			)
		);
	}

	return $partial_args;
}