woocommerce_rest_prepare_order_note

woocommerce_rest_prepare_order_note

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_rest_prepare_order_note') is found 3 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php line 362
    		 * @param WP_REST_Response $response The response object.
    		 * @param WP_Comment       $note     Order note object used to create response.
    		 * @param WP_REST_Request  $request  Request object.
    		 */
    		return apply_filters( 'woocommerce_rest_prepare_order_note', $response, $note, $request );
    	}
    
    	/**
    	 * Prepare links for the request.
    	 *
    	 * @param WP_Comment $note Delivery order_note object.
    
  • /includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php line 114
    		 * @param WP_REST_Response $response The response object.
    		 * @param WP_Comment       $note     Order note object used to create response.
    		 * @param WP_REST_Request  $request  Request object.
    		 */
    		return apply_filters( 'woocommerce_rest_prepare_order_note', $response, $note, $request );
    	}
    
    	/**
    	 * Get the Order Notes schema, conforming to JSON Schema.
    	 *
    	 * @return array
    
  • /includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php line 61
    		 * @param WP_REST_Response $response The response object.
    		 * @param WP_Comment       $note     Order note object used to create response.
    		 * @param WP_REST_Request  $request  Request object.
    		 */
    		return apply_filters( 'woocommerce_rest_prepare_order_note', $response, $note, $request );
    	}
    
    	/**
    	 * Create a single order note.
    	 *
    	 * @param WP_REST_Request $request Full details about the request.