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 PHP application that stores customer, patient or employee data meets the breach rules the day something goes wrong, and the 72-hour clock does not wait for a code review. I am Mariusz Szatkowski and I work remotely, by email and documents. For this topic your data protection officer or lawyer decides what is reportable. I build the application so that the facts exist when they are needed.

Thessaloniki’s White Tower. Image by Berthold Werner, licence CC BY-SA 3.0, via Wikimedia Commons.
Article 4(12) defines a personal data breach as a breach of security leading to the accidental or unlawful destruction, loss, alteration, unauthorised disclosure of, or access to, personal data transmitted, stored or otherwise processed. A leaked backup counts. So does a deleted table and a customer who can open another customer’s record.
Article 33 sets five rules, in the wording of the Regulation on EUR-Lex:
Article 34 adds a second duty. When the breach is likely to result in a high risk, the controller also tells the data subjects, in clear and plain language. Article 83(4) places the obligations in Articles 25 to 39 in the fine tier of up to 10 000 000 EUR or 2 % of worldwide annual turnover, whichever is higher.
The Hellenic Data Protection Authority (HDPA) publishes a page on breach notifications and a submission page. Together they say:
A practical reading: whoever files in Greece fills in a form that asks for facts. The facts come from the application and the server. If they are not recorded, the form stays incomplete, and the HDPA allows a phased notification only for facts that are not yet known, not for facts that were never captured.
The HDPA’s legal framework page describes Law 4624/2019 as implementing measures for the GDPR and the transposition of Directive (EU) 2016/680. It links an English translation by the HDPA, marked as without amendments.
In that translation, Article 63 carries a breach notification rule with a 72-hour deadline. The Article sits in Chapter D, headed “Transposition of Directive (2016/680)”, and refers to Article 30 of the Directive. That chapter governs processing by authorities for the prevention and prosecution of criminal offences. A company running a PHP shop, portal or ERP bridge is under the GDPR, and the HDPA’s own breach page cites only GDPR Articles 33, 34 and 58(2)(e).
What I could not confirm: the Greek consolidated text with all amendments, which the HDPA links but I did not read, and whether a Greek sector rule adds anything for your industry. I am not a lawyer. Ask your adviser before you rely on this reading.
Article 33(3) asks for categories and approximate numbers of data subjects and records. Article 33(5) asks for facts, effects and remedial action. A PHP application can only supply those if it recorded the right events before the incident. These are the events I would put in a controlled audit log:
| Question in a notification | Event the application records |
|---|---|
| Which data was reached? | Read and export of personal records: user, record identifiers, count, time |
| Who reached it? | Login, failed login, password reset, session start, source IP, user agent |
| How many records? | Result counts of exports, API list calls and admin searches |
| How did access widen? | Role and permission changes, new API tokens, new admin accounts |
| What changed? | Create, update and delete on personal data, with the acting user |
| When did it start and stop? | Timestamps in UTC and a request identifier across web, queue and cron |
| What was done in response? | Token revocations, forced logouts, deploy and configuration changes |
A minimal audit writer in plain PHP looks like this:
function audit(string $event, array $context = []): void
{
$line = json_encode([
'ts' => gmdate('c'),
'event' => $event,
'user_id' => $_SESSION['user_id'] ?? null,
'request' => $_SERVER['HTTP_X_REQUEST_ID'] ?? bin2hex(random_bytes(8)),
'ip' => $_SERVER['REMOTE_ADDR'] ?? null,
] + $context, JSON_UNESCAPED_SLASHES);
file_put_contents('/var/log/app/audit.log', $line . "\n", FILE_APPEND | LOCK_EX);
}
audit('customer.export', ['record_ids' => $ids, 'count' => count($ids)]);In Symfony or Laravel the same idea sits in an event listener or a middleware, so no controller has to remember it.
An audit log full of personal data becomes a second breach surface. GDPR Article 5(1)(c) asks for data limited to what is necessary, and Article 5(1)(e) asks for storage no longer than necessary. For the log this means:
Error output belongs to the same topic. The php.net manual says that display_errors “should never be used on production systems”, that log_errors is the advised replacement, and that the bundled php.ini-production sets display_errors to Off. A stack trace on screen can show paths, SQL and data to a visitor, which is a disclosure in itself.
display_errors = Off
log_errors = On
error_reporting = E_ALLIf an agency or a hosting provider runs the application for you, it is usually a processor. Article 33(2) obliges it to tell the controller without undue delay, so the contract should name who receives that message and how fast. Article 33(1) starts the 72 hours when the controller becomes aware. Whether awareness at the processor counts for the controller is a legal question for your adviser. Practically, the shorter the path from the log to the person who decides, the more of the 72 hours remains for the decision.
I need repository or server access and a short description of the data. Legal conclusions stay with you and your adviser.
If your Thessaloniki company runs a PHP application with personal data, send the address or repository access, the kind of data it holds, your hosting setup and your deadline through the contact form. A first written estimate for the logging work costs nothing. The reading of the law and the decision to notify stay with you and your adviser.
Examples of my work.
In the eastern part of Mielno, an exclusive apartment complex by the Baltic Sea, DUNE Resort, is being developed. This exceptional investment evokes the lu...
Instytut-csr.net is one of the valuable projects in my WordPress developer portfolio, realised as an educational and informational platform dedicated to Corp...
Neolight.pl is an advanced project in my portfolio as a WordPress developer, realised as an advertising portal supporting LED screen campaigns in Poland. Aro...
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.