woocommerce_rest_prepare_{$this->post_type}

woocommerce_rest_prepare_{$this->post_type}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_rest_prepare_{$this->post_type}') is found 6 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php line 221
    		 * @param WP_REST_Response   $response   The response object.
    		 * @param WP_Post            $post       Post object.
    		 * @param WP_REST_Request    $request    Request object.
    		 */
    		return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
    	}
    
    	/**
    	 * Only return writable props from schema.
    	 * @param  array $schema
    	 * @return bool
    
  • /includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php line 230
    		 * @param WP_REST_Response   $response   The response object.
    		 * @param WP_Post            $post       Post object.
    		 * @param WP_REST_Request    $request    Request object.
    		 */
    		return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
    	}
    
    	/**
    	 * Prepare links for the request.
    	 *
    	 * @param WC_Order_Refund $refund Comment object.
    
  • /includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php line 361
    		 * @param WP_REST_Response   $response   The response object.
    		 * @param WP_Post            $post       Post object.
    		 * @param WP_REST_Request    $request    Request object.
    		 */
    		return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
    	}
    
    	/**
    	 * Prepare links for the request.
    	 *
    	 * @param WC_Order $order Order object.
    
  • /includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php line 632
    		 * @param WP_REST_Response   $response   The response object.
    		 * @param WP_Post            $post       Post object.
    		 * @param WP_REST_Request    $request    Request object.
    		 */
    		return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
    	}
    
    	/**
    	 * Prepare links for the request.
    	 *
    	 * @param WC_Product      $product Product object.
    
  • /includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php line 596
    		 * @param WP_REST_Response $response The response object.
    		 * @param WC_Webhook       $webhook  Webhook object used to create response.
    		 * @param WP_REST_Request  $request  Request object.
    		 */
    		return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $webhook, $request );
    	}
    
    	/**
    	 * Prepare links for the request.
    	 *
    	 * @param int $id Webhook ID.
    
  • /includes/rest-api/Controllers/Version2/class-wc-rest-webhooks-v2-controller.php line 73
    		 * @param WP_REST_Response $response The response object.
    		 * @param WC_Webhook       $webhook  Webhook object used to create response.
    		 * @param WP_REST_Request  $request  Request object.
    		 */
    		return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $webhook, $request );
    	}
    
    	/**
    	 * Get the default REST API version.
    	 *
    	 * @since  3.0.0