| @@ -36,34 +36,11 @@ | ||
| 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 | 40 | } |
| 42 | 41 | |
| 43 | 42 | /** |
| 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 | - } | |
| 64 | - | |
| 65 | - /** | |
| 66 | 43 | * Redirect the default CPT list screens for suredonation_form and |
| 67 | 44 | * suredonation_cmpgn to their corresponding plugin pages. |
| 68 | 45 | * |
| 69 | 46 | * For the form listing, attempt to resolve the originating campaign |
| @@ -228,11 +205,8 @@ | ||
| 228 | 205 | 'plugin_installer_nonce' => wp_create_nonce( 'updates' ), |
| 229 | 206 | 'plugin_manager_nonce' => wp_create_nonce( 'suredonation_plugin_manager' ), |
| 230 | 207 | 'has_abilities_api' => class_exists( 'WP_Ability' ), |
| 231 | 208 | 'current_user_login' => wp_get_current_user()->user_login, |
| 232 | - 'integrations' => [ | |
| 233 | - 'sure_triggers' => Helper::get_ottokit_integration(), | |
| 234 | - ], | |
| 235 | 209 | // Bootstrap settings data so the General currency list and the |
| 236 | 210 | // PayPal connection state render synchronously (no post-mount |
| 237 | 211 | // fetch flicker). PayPal data is the non-sensitive subset only. |
| 238 | 212 | 'payments' => [ |