Same issue here, one year later. This is a massive bug that means we can’t send people to 404 using PHP, which is quite a usual thing.
Any updates?
Works on every other theme I tested it with.
I used a more complex code snippet in the video, but it’s the same if I try to send a normal permalink to 404. I also didn’t use a child theme, as this is for demonstration only. It’s from wetransfer, so it won’t be online for long: https://we.tl/t-WnaMdF4wGr.
Can we flag this thread as “bug”?