WordPress at Your Fingertips
function is not described

wc_privacy_policy_text() WC 3.4.0

Output privacy policy text. This is custom text which can be added via the customizer/privacy settings section.

Loads the relevant policy for the current page unless a specific policy text is required.

No Hooks.


null. Nothing.


wc_privacy_policy_text( $type );
Type of policy to load. Valid values include registration and checkout.
Default: 'checkout'


Since 3.4.0 Introduced.

Code of wc_privacy_policy_text() WC 5.6.0

function wc_privacy_policy_text( $type = 'checkout' ) {
	if ( ! wc_privacy_policy_page_id() ) {
	echo wp_kses_post( wpautop( wc_replace_policy_page_link_placeholders( wc_get_privacy_policy_text( $type ) ) ) );