How to display the current and parent category in WordPress
Need to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
A breach is a bad day for a company, and the 72 hours of the GDPR start counting while the team is still finding out what happened. The Romanian authority, ANSPDCP, publishes a fixed notification form, and half of its fields are facts that a well-built application can state in minutes if it logged them from the start. I am Mariusz Szatkowski, a PHP developer based in Gdynia, and I build that logging layer for custom applications. Deciding whether a breach must be notified is a legal call for you and your adviser.

Genoese Lighthouse on the Constanța seafront. Photo: Ștefan Jurcă from Munich, Germany, CC BY 2.0, Wikimedia Commons.
The ANSPDCP question and answer guide on the GDPR defines it as a breach of security leading, accidentally or unlawfully, to the destruction, loss, alteration or unauthorised disclosure of personal data that were transmitted, stored or otherwise processed, or to unauthorised access to them. The definition comes from Article 4 of the Regulation.
Three properties follow from it, and the authority form asks for them by name: confidentiality, integrity and availability. A leaked customer export is a confidentiality breach. A bug that overwrites order records is an integrity breach. A ransomware lock on the database is an availability breach, even if nothing was copied.
For a PHP application this matters because each property is detected differently. Confidentiality shows up in access logs, integrity in audit trails of writes, availability in uptime and backup records.
Article 33 GDPR sets the rules, and ANSPDCP repeats them in its guide:
The last rule is the one that reaches into application design. Documentation is owed for breaches that are not notified as well.
ANSPDCP states in its guide that the notification is made on the form adopted by Decision 128/2018 of the authority’s president, published in the Official Gazette no. 557 of 3 July 2018. The form is in two sections. The table groups its fields by where the answer comes from.
| Form field | Where a PHP application gets the answer |
|---|---|
| Controller, data protection officer or contact point | Configuration, kept current |
| New notification or supplement to an earlier one | The incident record, with the authority registration number once received |
| Date and time of the incident, and of its detection | Event log with two separate timestamps |
| Nature: confidentiality, integrity, availability | Classification field on the incident record |
| Nature and content of the personal data concerned | Data map of tables and columns per category |
| Technical and organisational measures applied | Release notes, access policy, encryption settings |
| Use of other operators | List of processors and hosting providers |
| Summary, physical location and storage media involved | Incident narrative, server and backup inventory |
| Number of data subjects, estimated | Count queries against the affected tables |
| Likely consequences and risks for the data subjects | Controller assessment |
| Measures taken to mitigate adverse effects | Incident timeline of actions |
| Information to data subjects: content, means, number | Mail or notice log |
| Data subjects from other member states | Country field on the data subject, if stored |
| Other national authorities notified | Incident record |
The form asks for the date and time of the incident and, separately, of its detection. The 72 hours count from awareness, so the application should store both and never overwrite one with the other.
The guide says the form adopted by the Decision exists online on the authority’s site. It also describes a second route: the form in editable PDF format is completed by the controller, signed digitally and sent to the authority’s breach mailbox, brese@dataprotection.ro. The Decision text and the guide both say that forms not signed digitally are not considered.
The authority page for the GDPR notification links an online submission as well. I could not tell from the pages I read which of the two channels the authority prefers today, and the guide dates from 2019. Confirm the current channel on the authority site before you write it into a runbook. The same site carries a separate form for providers of electronic communications services under Law 506/2004, which most web applications do not need.
Article 34 GDPR requires the controller to communicate the breach to the data subjects without undue delay when it is likely to result in a high risk to their rights and freedoms. The message must describe the nature of the breach in clear and plain language and contain at least the contact point, the likely consequences and the measures taken.
Article 34(3) lists cases where the communication is not required, for example when the controller applied protection that renders the data unintelligible to unauthorised persons, such as encryption, or when it would involve disproportionate effort and a public communication is made instead. Whether an exception applies is the controller’s decision.
For a PHP application the practical point is the audience. A query that returns the affected people, their language and their contact channel must run on a read-only copy within hours, and its results must be stored with the incident.
The list follows the form fields above and Article 33(5):
Log entries themselves can contain personal data, such as IP addresses and email addresses, so the log is a store under the same rules as the application database.
A small append-only file keeps the history of an incident and makes later edits visible. The sketch below uses functions from the PHP manual: DateTimeImmutable with DateInterval, json_encode with JSON_THROW_ON_ERROR, hash and file_put_contents with LOCK_EX.
<?php
declare(strict_types=1);
function logIncidentEvent(string $file, string $incidentId, string $event, array $facts): string
{
$previous = is_file($file) ? (string) hash_file('sha256', $file) : str_repeat('0', 64);
$entry = [
'incident' => $incidentId,
'at' => (new DateTimeImmutable())->format(DATE_ATOM),
'event' => $event,
'facts' => $facts,
'previous_file_hash' => $previous,
];
file_put_contents(
$file,
json_encode($entry, JSON_THROW_ON_ERROR) . "\n",
FILE_APPEND | LOCK_EX
);
return $entry['at'];
}
function notificationDeadline(string $awareAtIso): DateTimeImmutable
{
return (new DateTimeImmutable($awareAtIso))->add(new DateInterval('PT72H'));
}Each line carries the hash of the file as it was before the write, so changing an earlier line breaks every later hash. This does not replace a managed log store, but it makes an edit visible to a reviewer. The deadline function shows the figure the team works against once the awareness time is recorded. Whether awareness began at that moment is again the controller’s assessment.
Typical calls are logIncidentEvent($file, 'inc-001', 'detected', ['source' => 'alert']) when an alert fires, and a call with the event name classified and the three properties once the team knows them.
If your company runs a PHP application for customers and holds their personal data, you are in all likelihood a processor for them, and Article 33(2) obliges a processor to notify the controller without undue delay. The customer is the controller and notifies ANSPDCP. The processor agreement under Article 28 should therefore name a contact, a channel and the facts a processor passes on: affected systems, data categories, times, and the actions taken. The application can generate that message from the incident record.
You describe the application, the personal data it holds, the hosting and the people who would handle an incident. My first reply to a project brief arrives by email, within 24 hours on working days. The written estimate is free and names what I would check before building: where logs go, who can read them, which tables hold personal data. Changes go to a staging copy, you test them with simulated incidents, and they reach production only after your written approval. Other kinds of PHP work are listed on the main PHP developer page.
I am not a lawyer, and the Romanian authority’s pages change. If your Constanța business runs a custom PHP application with customer data and you want the breach log designed before you need it, send me the application’s outline through the contact form. The first written estimate is free, and it will say which parts of the log I would build first.
Examples of my work.
Vector Solutions is a company recognized in Poland and throughout Europe as a pioneer in the technology sector, transforming modern communication with innovative solutions for cable operators and telecommunications companies.
The Victim Assistance Office website was designed to provide professional and empathetic information to support people in difficult life situations. The site...
Technical implementation for a sole practitioner law firm in Wroclaw: WordPress migration, SSL certificate, mail server configuration, and pre-launch QA.
Describe your project by e-mail. I reply within 24 hours.
Describe your projectNeed to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
Need to get the URL of the first image or link in an article? Prefer DOMDocument over regex. Ready-made WordPress PHP for developers.
On 1 December 2026 Taylor Otwell shipped the Laravel Rust beta, and Laravel Go followed a day later. What the framework contains, what the 18x benchmark really measures, what happens to Laravel PHP and WordPress, and when a rewrite makes sense.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Stores, checkout flow, and sales logic.
Stability, updates, and post-launch support.
What the monthly care fee covers and what changes it.
Business process automation around WordPress and company systems.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.

How to start as a WordPress developer in 2026. Local environment, theme and plugin development, REST API and headless paths, security and Core Web Vitals. A practitioner playbook that does not waste your first month.

WordPress 7.0 with AI Client against Astro 7 with the Rust compiler and Vite 8. Speed, cost, SEO and security compared, plus the real bill for my own Astro 6 to 7 migration.

A detailed comparison table of EmDash CMS and WordPress across architecture, security, plugins, AI features, content model, hosting, and ecosystem maturity.