WP_REST_Sidebars_Controller::check_read_permission( array $sidebar ): bool

In this article

Checks if a sidebar can be read publicly.

Parameters

$sidebararrayrequired
The registered sidebar configuration.

Return

bool Whether the side can be read.

Source

protected function check_read_permission( $sidebar ) {
	return ! empty( $sidebar['show_in_rest'] );
}

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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