$notice = sprintf( wp_kses( /* translators: %s - WPForms.com URL for Square webhooks documentation. */ __( 'Looks like you have a problem with your webhooks configuration. Please check and confirm that you\'ve configured the WPForms webhooks in your Square account. This notice will disappear automatically when a new Square request comes in. See our documentation for more information.', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'target' => [], 'rel' => [], ], ] ), esc_url( wpforms_utm_link( 'https://wpforms.com/docs/setting-up-square-webhooks/', 'Admin', 'Square Webhooks not active' ) ) ); Notice::error( $notice, [ 'dismiss' => true, 'slug' => self::NOTICE_ID, ] ); } /** * Save webhooks status. * * @since 1.9.5 * * @param string $option Option name. * @param string $value Status value. */ public static function save_status( string $option, string $value ) { if ( ! in_array( $value, [ self::STATUS_OK, self::STATUS_ERROR ], true ) ) { return; } update_option( $option, $value ); } }