WP_Customize_Selective_Refresh::get_partial( string $id )

Retrieves a partial.


Parameters Parameters

$id

(string) (Required) Customize Partial ID.


Top ↑

Return Return

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


Top ↑

Source Source

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

	public function get_partial( $id ) {
		if ( isset( $this->partials[ $id ] ) ) {
			return $this->partials[ $id ];
		} else {
			return null;
		}
	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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