array( 'type' => 'object' ), 'stats' => array( 'type' => 'object' ), ); } protected function required_input(): array { return array(); } protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true ); } /** * @param array $input * @return array|WP_Error */ protected function run( array $input ) { $result = Redirections_Repository::stats(); if ( is_wp_error( $result ) ) { return $result; } $result['message'] = __( 'Returned Rank Math redirection counts and hit statistics.', 'acrossai-abilities-manager' ); return $result; } }