$links */ public function body( array $links ): string { $body = __( 'These links stopped working since the last report.', 'aiplaz-link-checkup' ) . self::LINE_BREAK; foreach ( $links as $link ) { $body .= self::LINE_BREAK . $link->url . self::LINE_BREAK . __( 'Places that use it:', 'aiplaz-link-checkup' ) . ' ' . $link->uses_count . self::LINE_BREAK; } $invitation = __( 'Open Link Checkup to fix them:', 'aiplaz-link-checkup' ); return $body . self::LINE_BREAK . $invitation . ' ' . admin_url( self::SCREEN_PATH ) . self::LINE_BREAK; } }