Forget PHP, just vibe code a substitute for the ten lines of WordPress you actually need.
(Better yet, just regular code it!)