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