WP_Customize_Nav_Menu_Item_Setting::js_value(): array|false

In this article

Prepares the value for editing on the client.

Return

array|false Value prepared for the client.

Source

public function js_value() {
	$value = parent::js_value();
	if ( is_array( $value ) && isset( $value['original_title'] ) ) {
		// Decode entities for the sake of displaying the original title as a placeholder.
		$value['original_title'] = html_entity_decode( $value['original_title'], ENT_QUOTES, get_bloginfo( 'charset' ) );
	}
	return $value;
}

Changelog

VersionDescription
6.8.3Introduced.

User Contributed Notes

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