W3cubDocs

/WordPress

WP_Customize_Selective_Refresh::remove_partial( string $id )

Removes a partial.

Parameters

$id

(string) (Required) Customize Partial ID.

Source

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

public function remove_partial( $id ) {
		unset( $this->partials[ $id ] );
	}

Changelog

Version Description
4.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/remove_partial