WP_Customize_Nav_Menu_Item_Setting::js_value
Prepares the value for editing on the client.
Method of the class: WP_Customize_Nav_Menu_Item_Setting{}
No Hooks.
Returns
Array|false. Value prepared for the client.
Usage
$WP_Customize_Nav_Menu_Item_Setting = new WP_Customize_Nav_Menu_Item_Setting(); $WP_Customize_Nav_Menu_Item_Setting->js_value();
Changelog
| Since 6.8.3 | Introduced. |
WP_Customize_Nav_Menu_Item_Setting::js_value() WP Customize Nav Menu Item Setting::js value code WP 6.9
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;
}