| @@ -36,31 +36,8 @@ | ||
| 36 | 36 | add_action( 'admin_menu', [ $this, 'register_menu' ] ); |
| 37 | 37 | add_action( 'admin_menu', [ $this, 'hide_forms_submenu' ], 999 ); |
| 38 | 38 | add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_admin_scripts' ] ); |
| 39 | 39 | add_action( 'admin_init', [ $this, 'redirect_cpt_listings' ] ); |
| 40 | - add_action( 'admin_init', [ $this, 'register_privacy_policy_content' ] ); | |
| 41 | - } | |
| 42 | - | |
| 43 | - /** | |
| 44 | - * Register suggested privacy-policy text for the plugin's data transfers. | |
| 45 | - * | |
| 46 | - * Surfaces the Phone field's automatic country detection (which sends the | |
| 47 | - * visitor's IP to ipapi.co) in the WordPress Privacy Policy Guide | |
| 48 | - * (Settings → Privacy → Policy Guide) so site owners can disclose it in | |
| 49 | - * their own policy. This only suggests text to admins — it publishes | |
| 50 | - * nothing and is not shown to donors. | |
| 51 | - * | |
| 52 | - * @since 1.1.1 | |
| 53 | - * @return void | |
| 54 | - */ | |
| 55 | - public function register_privacy_policy_content() { | |
| 56 | - if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) { | |
| 57 | - return; | |
| 58 | - } | |
| 59 | - | |
| 60 | - $content = __( 'When a Phone field with automatic country detection is used, this site sends the visitor’s IP address to a third-party service (ipapi.co) to determine their country code. The IP address is not stored for this purpose; the resulting country code is cached temporarily. Automatic detection can be disabled per Phone field, or site-wide via the “suredonation_phone_geo_enabled” filter.', 'suredonation' ); | |
| 61 | - | |
| 62 | - wp_add_privacy_policy_content( 'SureDonation', wp_kses_post( wpautop( $content ) ) ); | |
| 63 | 40 | } |
| 64 | 41 | |
| 65 | 42 | /** |
| 66 | 43 | * Redirect the default CPT list screens for suredonation_form and |