Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rest_prepare_wp_font_face

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
474           /**
475            * Filters the font face data for a REST API response.
476            *
477            * @since 6.5.0
478            *
479            * @param WP_REST_Response $response The response object.
480            * @param WP_Post          $post     Font face post object.
481            * @param WP_REST_Request  $request  Request object.
482            */
483           return apply_filters( 'rest_prepare_wp_font_face', $response, $item, $request );
484      }
485
486      /**
487       * Retrieves the post's schema, conforming to JSON Schema.
488       *
489       * @since 6.5.0
490       *
491       * @return array Item schema data.
492       */