/**
* Gather the parameters passed to client JavaScript via JSON.
*
* @since 4.1.0
*
* @return array The array to be exported to the client as JSON.
*/
public function json() { $array =
wp_array_slice_assoc( (array) $this, array
( 'id', 'description', 'priority', 'type'
) );
$array['title'
] =
html_entity_decode( $this->title, ENT_QUOTES,
get_bloginfo( 'charset'
) );
$array['content'
] =
$this->
get_content();
$array['active'
] =
$this->
active();
$array['instanceNumber'
] =
$this->instance_number;
$array['autoExpandSoleSection'
] =
$this->auto_expand_sole_section;
return $array;
} /**
* Checks required user capabilities and whether the theme has the
* feature support required by the panel.
*
* @since 4.0.0
* @since 5.9.0 Method was marked non-final.
*
* @return bool False if theme doesn't support the panel or the user doesn't have the capability.
*/