Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Hooks in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

WP version: 5.4

Important! Some hooks get applied in multiple files. If you are trying to figure out what a specific hook does, you need to look in all the files that apply the hook. Click the "details" link next to any hook for more information.

Hook Type New? File
1 get_the_excerpt filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
2 get_the_guid filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
3 rest_after_insert_{$this->post_type} note action no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
4 rest_after_insert_{$this->post_type} note action no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
5 rest_delete_{$this->post_type} note action no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
6 rest_insert_{$this->post_type} note action no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
7 rest_insert_{$this->post_type} note action no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
8 rest_prepare_{$this->post_type} note filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
9 rest_pre_insert_{$this->post_type} note filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
10 rest_query_var-{$key} note filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
11 rest_{$this->post_type}_collection_params note filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
12 rest_{$this->post_type}_item_schema note filter YES wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
13 rest_{$this->post_type}_query note filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
14 rest_{$this->post_type}_trashable note filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
15 the_content filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
16 the_excerpt filter no wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

Important warning about variable hooks

Some hooks have variables in their names. For example, pre_${taxonomy}_$field and admin_head- both have variable names. In general, any hook that ends (or begins) with - or _, or contains a $, has a variable name. Since the syntax with which these variables are defined may change from version to version, this page may think that a hook is deprecated (or new) even if it is not. You can usually catch this sort of thing by comparing this hook to the list of "related hooks" below.