lse; } return true; } /** * Admin notice to alert that the currently active method is not available, and they should update. * * @return void */ public static function method_unavailable_notice() { $admin_url = ( function_exists( 'c4wp_same_settings_for_all_sites' ) || ! function_exists( 'c4wp_same_settings_for_all_sites' ) && is_multisite() ) ? network_admin_url( 'admin.php?page=c4wp-admin-captcha-account' ) : admin_url( 'admin.php?page=c4wp-admin-captcha-account' ); $markup = '
'; $markup .= sprintf( 'The active CAPTCHA method is not currently available for your license. Please update your settings accordingly or activate a %1$s license to continue protecting your websites forms. %2$s', '' . esc_html__( 'Business or Enterprise', 'advanced-nocaptcha-recaptcha' ) . '', '' . esc_html__( 'Update my license', 'advanced-nocaptcha-recaptcha' ) . '', '' . esc_html__( 'Close and update settings', 'advanced-nocaptcha-recaptcha' ) . '' ); $markup .= '