WordPress.org

Make WordPress Core

Changeset 47509


Ignore:
Timestamp:
03/26/2020 05:41:14 PM (43 hours ago)
Author:
johnbillion
Message:

Query: Introduce an action which gets fired when a 404 is triggered.

Fixes #48061

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-query.php

    r47402 r47509  
    17121712
    17131713        $this->is_feed = $is_feed;
     1714
     1715        /**
     1716         * Fires after a 404 is triggered.
     1717         *
     1718         * @since 5.5.0
     1719         *
     1720         * @param WP_Query $this The WP_Query instance (passed by reference).
     1721         */
     1722        do_action_ref_array( 'set_404', array( $this ) );
    17141723    }
    17151724
Note: See TracChangeset for help on using the changeset viewer.