Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_get_default_privacy_policy_content

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
704            *
705            * @since 4.9.6
706            * @since 5.0.0 Added the `$strings`, `$description`, and `$blocks` parameters.
707            *
708            * @param string $content     The default policy content.
709            * @param array  $strings     An array of privacy policy content strings.
710            * @param bool   $description Whether policy descriptions should be included.
711            * @param bool   $blocks      Whether the content should be formatted for the block editor.
712            */
713           return apply_filters( 'wp_get_default_privacy_policy_content', $content, $strings, $description, $blocks );
714      }
715
716      /**
717       * Add the suggested privacy policy text to the policy postbox.
718       *
719       * @since 4.9.6
720       */
721      public static function add_suggested_content() {
722           $content = self::get_default_content( true, false );