set_404 хук-событие . WP 5.5.0
Fires after a 404 is triggered.
Использование
add_action( 'set_404', 'action_function_name_4721' ); function action_function_name_4721( $this ){ // action... }
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
set_404
wp-includes/class-wp-query.php 1720
do_action_ref_array( 'set_404', array( $this ) );