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 runs part of a Malmö organisation’s service can sit inside Sweden’s NIS2 rules even when the developer who builds it does not. I am Mariusz Szatkowski, a developer in Gdynia, working with WordPress since 2006 and building Laravel and Symfony applications remotely and in writing. This page reads the Swedish Cybersecurity Act, its ordinance and the MCF regulations from the supplier’s side. I am not a lawyer, and whether your organisation is covered is for you and your adviser to determine.

Västra hamnen panorama, Malmö. Image credit: Adbar, CC BY-SA 4.0 licence, original on Wikimedia Commons.
The Cybersecurity Act (2025:1506), cybersäkerhetslagen in Swedish, is Sweden’s main transposition of the NIS2 directive (EU) 2022/2555. Its first section states the purpose: a high level of cybersecurity in society. The act says it implements the directive in part.
According to the consolidated text on riksdagen.se, the government issued the act on 11 December 2025, it entered into force on 15 January 2026, and it repealed the act (2018:1174) on information security for essential and digital services. Violations committed before 15 January 2026 are still judged under the repealed act. The consolidated text I read on 4 December 2026 was amended up to SFS 2026:2143, which adds provisions from 1 January 2027.
A companion Cybersecurity Ordinance (2025:1507), issued the same day, names the authorities and gives them the power to write detailed regulations.
Chapter 1 sets the scope. Among other groups, the act applies to:
Two definitions in chapter 1 section 2 matter for web work. An online marketplace is a service that uses software, including a website, part of a website or an application, run by or for a trader, that lets consumers conclude distance contracts with other traders or consumers. A managed service is the installation, management, operation or maintenance of ICT products, networks, infrastructure, applications or other systems, through assistance or active administration on the customer’s premises or remotely.
For Malmö the public side is clear: Malmö stad and Region Skåne are covered as a municipality and a region under chapter 1 section 3. Private companies need their own assessment of sector and size.
Chapter 1 section 7 also covers top-level domain registries, DNS service providers and domain name registration services without any size test, so a web supplier that registers domains for clients should check that point separately. A one-person PHP practice that only writes and maintains code is normally far below the medium-size threshold, so the act does not apply to it as an operator. The duties reach it as a supplier, through the client’s contract.
Chapter 2 lists the duties. The main ones:
Section 3 lists ten areas the security measures must at least cover. Two of them describe a supplier’s daily work: supply chain security, and security in the acquisition, development and maintenance of network and information systems. Others, such as access control, use of cryptography and basic cyber hygiene, show up in the code of any PHP application that handles the operator’s data.
An incident counts as significant if it has caused or can cause a severe operational disruption or financial loss for the operator, or has affected or can affect other people by causing considerable damage. The timetable in chapter 2:
| Step | Deadline in the act |
|---|---|
| Early warning | as soon as possible, at the latest 24 hours after becoming aware |
| Incident notification | as soon as possible, at the latest 72 hours after becoming aware (24 hours for trust service providers) |
| Interim report | on request of the authority |
| Final report | at the latest one month after the notification, or a progress report if the incident is still ongoing |
The clock starts when the operator becomes aware. When the PHP application, its hosting or its deployment pipeline is run by a supplier, the operator learns about an incident only as fast as the supplier tells it. That is why the MCF general advice below asks contracts to state when and how suppliers report incidents.
The ordinance splits the roles, and they moved during 2026:
Myndigheten för civilt försvar (MCF), in English the Swedish Civil Defence and Resilience Agency, wrote the first regulations under the act. MCFFS 2026:1 on registration and identification of operators was decided on 8 January 2026 and entered into force on 2 February 2026. Since July 2026 the ordinance gives FRA the power to issue regulations under section 38 that MCF used before, and MCFFS 2026:11 itself points operators to the National Cyber Security Centre (NCSC) at FRA for threat information. I did not find a text that repeals the MCF regulations. Check the current status with the authority before relying on any one of them.
MCFFS 2026:11 contains MCF’s regulations and general advice on security measures and management training. It was decided on 15 June 2026 and its text sets 1 October 2026 as the date of entry into force. The regulations (“ska”) are binding. The general advice (“bör”) is recommendation and has a different legal status, which the document itself states.
Its scope has an exception that matters. For operators active solely in digital infrastructure, digital providers, B2B ICT service management, postal and courier services or space, only the management training rule applies. A Malmö online marketplace or a managed service provider in that position follows other rules for its technical measures. The supplier clauses below bind operators in the other sectors, such as municipalities, regions, energy, health or manufacturing.
Chapter 4 section 1 on acquisition and outsourcing says, paraphrased:
Section 4 requires contracts to ensure that appropriate security measures can be implemented and maintained over time. The general advice under it lists what an outsourcing contract should regulate. Among the points: contact details for a system owner at the supplier, the security competence the supplier needs, when and how the supplier reports suspected and actual incidents, threats, vulnerabilities and changes, how risks from sub-suppliers are handled and shared, checks for malicious code before delivery, joint exercises, follow-up of compliance, early termination for non-compliance, and return or destruction of data when the contract ends.
Chapter 4 sections 5 and 6 of MCFFS 2026:11 cover development. Before and during development and maintenance the operator must involve information and system owners, keep the information classification, risk analysis and action plan current, and follow established methods for secure development. Before a system is put into operation for the first time, five things must be in place: operating documentation, completed security tests and reviews, enough resources for operation and maintenance, handling of identified security needs, and a decision to start processing.
The general advice on documentation lists what an operator should record per system, including which software it uses and its version. For a PHP application those records come almost for free from the project files.
The PHP version is the first line. According to php.net, on 4 December 2026 the supported branches were 8.2, 8.3, 8.4, 8.5 and 8.6. Security support for PHP 8.2 ends on 31 December 2026, 8.3 on 31 December 2027, 8.4 on 31 December 2028. An application still on 8.2 enters 2027 without security fixes from the PHP project, which belongs in the risk analysis the regulations require.
Composer packages are the second line. According to the Composer basic usage documentation, the update command writes all packages and their exact versions to composer.lock. The command reference says composer audit checks installed packages against security advisories from the Packagist.org API, reports abandoned and malware-flagged packages, and returns exit code 1 when it finds something. With --locked it audits the lock file.
php -v
composer audit --locked --format=json > audit-report.jsonRun in the deployment pipeline, the two commands give the operator a dated software and vulnerability record per release. They support the monitoring the regulations ask for, where operators must gather information from their software suppliers and from NCSC.
For an operator that buys PHP development, a practical supplier package therefore looks like this:
There is one developer on your project and no sub-suppliers for development work, which keeps the supplier map short. The broader offer for PHP projects is on the PHP developer page.
If your Malmö organisation needs PHP development that fits its cybersecurity obligations, write through the contact form with the system, the versions in use and the security clauses you give suppliers. I prepare the first written estimate without charge. Whether the act covers you, and which measures are proportionate, stays your decision with your adviser.
Examples of my work.
A package of various special banners for the osemka.pl website
A package of various special banners for the osemka.pl website
The website strefapremium.pl has been designed as a modern premium portal, dedicated to users seeking exclusive content and services. The site combines high-...
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.