WordPress at Your Fingertips
function is not described

WC_Abstract_Privacy::add_privacy_message() public WC 1.0

Adds the privacy message on WC privacy page.

{} It's a method of the class: WC_Abstract_Privacy{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Abstract_Privacy = new WC_Abstract_Privacy();
$WC_Abstract_Privacy->add_privacy_message();

Code of WC_Abstract_Privacy::add_privacy_message() WC 5.5.2

<?php
public function add_privacy_message() {
	if ( function_exists( 'wp_add_privacy_policy_content' ) ) {
		$content = $this->get_privacy_message();

		if ( $content ) {
			wp_add_privacy_policy_content( $this->name, $this->get_privacy_message() );
		}
	}
}