GC_Customize_Selective_Refresh::get_partial()

最后更新于:2021-11-27 08:07:16

GC_Customize_Selective_Refresh::get_partial( string$id)

Retrieves a partial.

参数

$id

(string) (Required) Customize Partial ID.

响应

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

源文件

文件: gc-includes/customize/class-gc-customize-selective-refresh.php

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