public function add_dynamic_partials( $partial_ids ) { $new_partials = array
();
foreach ( $partial_ids as $partial_id ) { // Skip partials already created.
$partial =
$this->
get_partial( $partial_id );
if ( $partial ) { continue;
} $partial_args = false;
$partial_class = 'WP_Customize_Partial';
/**
* Filters a dynamic partial's constructor arguments.
*
* For a dynamic partial to be registered, this filter must be employed
* to override the default false value with an array of args to pass to
* the WP_Customize_Partial constructor.
*
* @since 4.5.0
*
* @param false|array $partial_args The arguments to the WP_Customize_Partial constructor.
* @param string $partial_id ID for dynamic partial.
*/