add return types in matchplay.php
This commit is contained in:
parent
213f605a4b
commit
3986a83ccb
|
@ -28,7 +28,7 @@ function create_block_matchplay_block_init(): void {
|
|||
|
||||
|
||||
add_action( 'admin_init', 'matchplay_register_settings' );
|
||||
function matchplay_register_settings() {
|
||||
function matchplay_register_settings(): void {
|
||||
register_setting( 'matchplay', 'matchplay_options' );
|
||||
|
||||
add_settings_section(
|
||||
|
@ -48,7 +48,7 @@ function matchplay_register_settings() {
|
|||
);
|
||||
}
|
||||
|
||||
function matchplay_field_api_key_callback( $args ) {
|
||||
function matchplay_field_api_key_callback( $args ): void {
|
||||
$options = get_option( 'matchplay_options' );
|
||||
?>
|
||||
<input
|
||||
|
@ -60,7 +60,7 @@ function matchplay_field_api_key_callback( $args ) {
|
|||
|
||||
|
||||
add_action( 'admin_menu', 'matchplay_options_page' );
|
||||
function matchplay_options_page() {
|
||||
function matchplay_options_page(): void {
|
||||
add_options_page(
|
||||
'Matchplay Settings',
|
||||
'Matchplay Settings',
|
||||
|
@ -68,10 +68,9 @@ function matchplay_options_page() {
|
|||
'matchplay',
|
||||
'matchplay_settings_page_html'
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function matchplay_settings_page_html() {
|
||||
function matchplay_settings_page_html(): void {
|
||||
// check user capabilities
|
||||
if ( ! current_user_can( 'manage_options' ) ) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue