On this page
WP_Customize_Selective_Refresh::get_partial( string $id ): WP_Customize_Partial|null
Retrieves a partial.
Parameters
$idstring Required-
Customize Partial ID.
Return
WP_Customize_Partial|null The partial, if set. Otherwise null.
Source
File: wp-includes/customize/class-wp-customize-selective-refresh.php. View all references
public function get_partial( $id ) {
if ( isset( $this->partials[ $id ] ) ) {
return $this->partials[ $id ];
} else {
return null;
}
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Selective_Refresh::add_dynamic_partials() wp-includes/customize/class-wp-customize-selective-refresh.php | Registers dynamically-created partials. |
| WP_Customize_Selective_Refresh::handle_render_partials_request() wp-includes/customize/class-wp-customize-selective-refresh.php | Handles the Ajax request to return the rendered partials for the requested placements. |
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/get_partial