'booking_terms', 'text' => $text, 'label' => $label ) ) ); return array( 'purpose' => 'booking_terms', 'version' => $hash, 'hash' => $hash, 'text' => $text, 'label' => $label ); } public static function render( array $settings ): void { $url = esc_url( (string) ( $settings['privacy_policy_url'] ?? '' ), array( 'http', 'https' ) ); if ( '' === $url && function_exists( 'get_privacy_policy_url' ) ) { $url = get_privacy_policy_url(); } echo ''; } }