apply_filters( 'customize_dynamic_partial_class', string $partial_class, string $partial_id, array $partial_args )

Filters the class used to construct partials.


Description

Allow non-statically created partials to be constructed with custom WP_Customize_Partial subclass.


Parameters

$partial_class

WP_Customize_Partial or a subclass.

$partial_id

ID for dynamic partial.

$partial_args

The arguments to the WP_Customize_Partial constructor.


Source

File: wp-includes/customize/class-wp-customize-selective-refresh.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.5.0 Introduced.