%1$s

%2$s %3$s

%4$s

', esc_html__( 'Asklet shows a feedback survey from asklet.io on your posts. You can use the text below in your privacy policy. Change it if you show the survey only on some pages.', 'asklet' ), esc_html__( 'Suggested text:', 'asklet' ), esc_html__( 'Our articles include a short feedback survey run by Asklet. When you open or reach the survey, your browser loads it from asklet.io, which receives the address of the page you are reading and, as with any web request, your IP address and browser user agent. Asklet sets no cookies, uses no tracking identifiers, does not store your IP address or user agent and does not link them to your answers; it keeps only a short-lived, hourly-rotated hash of your network to limit abuse. Your answers are anonymous and stored by Asklet. If the survey has a comment box, what you type there is sent to Asklet with your answer.', 'asklet' ), sprintf( /* translators: %s: link to Asklet's privacy policy */ esc_html__( 'Asklet\'s privacy policy: %s', 'asklet' ), 'https://asklet.io/privacy/' ) ); wp_add_privacy_policy_content( 'Asklet', wp_kses_post( $content ) ); } /** * Registers the site key test in Tools → Site Health. * * @param array $tests Site Health tests. * @return array */ public static function add_site_health_test( $tests ) { $tests['direct']['asklet_site_key'] = array( 'label' => __( 'Asklet site key', 'asklet' ), 'test' => array( __CLASS__, 'site_health_site_key' ), ); return $tests; } /** * Site Health result: is a site key saved? * * @return array */ public static function site_health_site_key() { $has_key = '' !== Asklet_Settings::get()['site_key']; return array( 'label' => $has_key ? __( 'Asklet has a site key', 'asklet' ) : __( 'Asklet has no site key, so no survey is shown', 'asklet' ), 'status' => $has_key ? 'good' : 'recommended', 'badge' => array( 'label' => __( 'Asklet', 'asklet' ), 'color' => $has_key ? 'blue' : 'orange', ), 'description' => '

' . esc_html__( 'The Asklet plugin needs your website\'s site key from Asklet to show the survey.', 'asklet' ) . '

', 'actions' => $has_key ? '' : sprintf( '

%s

', esc_url( admin_url( 'options-general.php?page=' . Asklet_Settings::PAGE ) ), esc_html__( 'Add your site key', 'asklet' ) ), 'test' => 'asklet_site_key', ); } }