Skip to content

Instantly share code, notes, and snippets.

View robwent's full-sized avatar
💭
Doing 'stuff'

Robert Went robwent

💭
Doing 'stuff'
View GitHub Profile
<?php
/**
* Plugin Name: Elementor Pro – Restore 404s on Non-Existent Term Archives
* Description: Fixes a fatal error ("Object of class WP_Error could not be converted to string") and incorrect 200 responses on non-existent tag/category/taxonomy URLs when an Elementor Pro Archive template with a paginated posts widget is active.
* Version: 1.0.0
* Author: https://robertwent.com
* License: GPL-2.0-or-later
*
* ---------------------------------------------------------------------------
* THE PROBLEM