WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/25/2018 06:10:00 PM (2 years ago)
Author:
azaozz
Message:

Privacy: add better docs for wp_add_privacy_policy_content() and WP_Privacy_Policy_Content::add().

See #43620.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r42999 r43003  
    12821282
    12831283    /**
    1284      * Add privacy information to the postbox shown when editing the privacy policy.
     1284     * Add content to the postbox shown when editing the privacy policy.
     1285     *
     1286     * Plugins and themes should suggest text for inclusion in the site's privacy policy.
     1287     * The suggested text should contain information about any functionality that affects user privacy,
     1288     * and will be shown in the Suggested Privacy Policy Content postbox.
    12851289     *
    12861290     * Intended for use from `wp_add_privacy_policy_content()`.
    12871291     *
    1288      * $since 5.0.0
    1289      *
    1290      * @param string $plugin_name The plugin'as name. Will be shown in the privacy policy metabox.
    1291      * @param string $policy_text The content that should appear in the site's privacy policy.
     1292     * $since 4.9.6
     1293     *
     1294     * @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy.
     1295     * @param string $policy_text The suggested content for inclusion in the policy.
    12921296     */
    12931297    public static function add( $plugin_name, $policy_text ) {
Note: See TracChangeset for help on using the changeset viewer.