wp_add_privacy_policy_content example


    public function add_privacy_policy_content() {
        if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) {
            return;
        }
        $content = '<p class="privacy-policy-tutorial">' . __( 'Twenty Twenty-One uses LocalStorage when Dark Mode support is enabled.', 'twentytwentyone' ) . '</p>'
                . '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:', 'twentytwentyone' ) . '</strong> '
                . __( 'This website uses LocalStorage to save the setting when Dark Mode support is turned on or off.<br> LocalStorage is necessary for the setting to work and is only used when a user clicks on the Dark Mode button.<br> No data is saved in the database or transferred.', 'twentytwentyone' );
        wp_add_privacy_policy_content( __( 'Twenty Twenty-One', 'twentytwentyone' )wp_kses_post( wpautop( $content, false ) ) );
    }

}
'wp_add_privacy_policy_content()'
        );
    }

    /** * Adds the suggested privacy policy text to the policy postbox. * * @since 4.9.6 */
    public static function add_suggested_content() {
        $content = self::get_default_content( false, false );
        wp_add_privacy_policy_content( __( 'WordPress' )$content );
    }
}
delete_option( 'Activated_Akismet' );
            if ( ! headers_sent() ) {
                $admin_url = self::get_page_url( 'init' );
                wp_redirect( $admin_url );
            }
        }

        load_plugin_textdomain( 'akismet' );
        add_meta_box( 'akismet-status', __('Comment History', 'akismet'), array( 'Akismet_Admin', 'comment_status_meta_box' ), 'comment', 'normal' );

        if ( function_exists( 'wp_add_privacy_policy_content' ) ) {
            wp_add_privacy_policy_content(
                __( 'Akismet', 'akismet' ),
                __( 'We collect information about visitors who comment on Sites that use our Akismet anti-spam service. The information we collect depends on how the User sets up Akismet for the Site, but typically includes the commenter\'s IP address, user agent, referrer, and Site URL (along with other information directly provided by the commenter such as their name, username, email address, and the comment itself).', 'akismet' )
            );
        }
    }

    public static function admin_menu() {
        if ( class_exists( 'Jetpack' ) ) {
            add_action( 'jetpack_admin_menu', array( 'Akismet_Admin', 'load_menu' ) );
        } else {
            self::load_menu();
        }
Home | Imprint | This part of the site doesn't use cookies.