跳转到主要内容

ACF_Rest_Embed_Links

Class ACF_Rest_Embed_Links

  • Manage the addition of embed links on supported REST endpoints.

Properties

Methods

Hook into all REST-enabled post type, taxonomy, and the user controllers in order to prepare links.

  • @param $post_id
  • @param array $field

Hook into the rest_prepare_{$type} filters and add links for the object being prepared.

  • @param WP_REST_Response $response
  • @param WP_Post|WP_User|WP_Term $item
  • @param WP_REST_Request $request
  • @return WP_REST_Response