Checks if a sidebar can be read publicly.
$sidebararrayrequired
protected function check_read_permission( $sidebar ) {
return ! empty( $sidebar['show_in_rest'] );
}
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_sidebars_controller/check_read_permission