WP_Customize_Selective_Refresh::get_partial
Retrieves a partial.
Method of the class: WP_Customize_Selective_Refresh{}
No Hooks.
Returns
WP_Customize_Partial|null. The partial, if set. Otherwise null.
Usage
$WP_Customize_Selective_Refresh = new WP_Customize_Selective_Refresh(); $WP_Customize_Selective_Refresh->get_partial( $id );
- $id(string) (required)
- Customize Partial ID.
Changelog
| Since 4.5.0 | Introduced. |
WP_Customize_Selective_Refresh::get_partial() WP Customize Selective Refresh::get partial code WP 7.1
public function get_partial( $id ) {
return $this->partials[ $id ] ?? null;
}