Server IP : 192.158.238.246 / Your IP : 3.129.253.54 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/jenniferflocom/www/wp-content/plugins/woocommerce/src/Internal/Admin/ |
Upload File : |
<?php /** * Survey helper methods. */ namespace Automattic\WooCommerce\Internal\Admin; defined( 'ABSPATH' ) || exit; /** * Survey Class. */ class Survey { /** * Survey URL. */ const SURVEY_URL = 'https://automattic.survey.fm'; /** * Get a survey's URL from a path. * * @param string $path Path of the survey. * @param array $query Query arguments as key value pairs. * @return string Full URL to survey. */ public static function get_url( $path, $query = array() ) { $url = self::SURVEY_URL . $path; $query_args = apply_filters( 'woocommerce_admin_survey_query', $query ); if ( ! empty( $query_args ) ) { $query_string = http_build_query( $query_args ); $url = $url . '?' . $query_string; } return $url; } }