WP_Customize_Selective_Refresh::get_partial( string $id ): WP_Customize_Partial|null

Retrieves a partial.


Parameters

$id string Required
Customize Partial ID.

Top ↑

Return

WP_Customize_Partial|null The partial, if set. Otherwise null.


Top ↑

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;
	}
}


Top ↑

Changelog

Changelog
Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.