get_privacy_policy(); if ( $policy_text_content ) { if ( is_array( $policy_text_content ) ) { $policy_text_content = '

' . implode( '

', $policy_text_content ) . '

'; } wp_add_privacy_policy_content( $this->get_plugin_name(), $policy_text_content ); } } /** * @return string */ abstract protected function get_plugin_name(); /** * @return string|array a single or an array of strings (plain text or HTML). Array items will be wrapped by a paragraph tag. */ abstract protected function get_privacy_policy(); }