WP_Customize_Selective_Refresh::get_partial()
Retrieves a partial.
Method of the class: WP_Customize_Selective_Refresh{}
No Hooks.
Return
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 6.3
public function get_partial( $id ) { if ( isset( $this->partials[ $id ] ) ) { return $this->partials[ $id ]; } else { return null; } }