content(), false ) ) ); } /** * The suggested text, as HTML paragraphs. Paragraphs with the * `privacy-policy-tutorial` class are notes for the site owner, left out * when the text is copied. * * @return string */ public function content(): string { $paragraphs = array( '

' . esc_html__( 'Yangra Conditional decides which menu items each visitor sees. It reads a few details of each request to do so, and stores nothing about visitors.', 'yangra-conditional' ) . '

', '' . esc_html__( 'Suggested text:', 'yangra-conditional' ) . ' ' . esc_html__( 'Some menu items on this site are only shown to certain visitors. To decide which ones you see, the site checks whether you are logged in, your user role, and whether you are using a mobile device, from your browser\'s user agent and the Sec-CH-UA-Mobile header it sends. These details are only used while the page is created. They are not stored and not sent to anyone.', 'yangra-conditional' ), '

' . sprintf( /* translators: %s: cookie name. */ esc_html__( 'Users who can manage the site\'s appearance can use "Preview as" in the admin bar to see the site as other visitors. Their choices are kept in the %s cookie until the browser is closed. It is not set for anyone else.', 'yangra-conditional' ), '' . esc_html( Preview::COOKIE ) . '' ) . '

', ); /** * Filters the suggested privacy policy text, as a list of HTML paragraphs. * Pro adds paragraphs about the data its features read and store. * * @param array $paragraphs HTML paragraphs. */ $paragraphs = (array) apply_filters( 'yangra_conditional_privacy_policy_content', $paragraphs ); return implode( "\n\n", array_map( 'strval', $paragraphs ) ); } }