| 1 |
<?php |
| 2 |
|
| 3 |
class WPUPG_Privacy { |
| 4 |
|
| 5 |
public function __construct() |
| 6 |
{ |
| 7 |
add_action('admin_init', array($this, 'privacy_policy') ); |
| 8 |
} |
| 9 |
|
| 10 |
public function privacy_policy() |
| 11 |
{ |
| 12 |
if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) { |
| 13 |
return; |
| 14 |
} |
| 15 |
|
| 16 |
$content = __( 'WP Ultimate Post Grid does not collect any data. Fonts in the grid templates will be loaded from the Google Web Font API (fonts.googleapis.com) unless changed in the Template Editor. You will be agreeing to their Terms of Use and Privacy Policy.', |
| 17 |
'wp-ultimate-post-grid' ); |
| 18 |
|
| 19 |
wp_add_privacy_policy_content( |
| 20 |
'WP Ultimate Post Grid', |
| 21 |
wp_kses_post( wpautop( $content, false ) ) |
| 22 |
); |
| 23 |
} |
| 24 |
} |