woocommerce_new_order_note_data filter-hook . WC 1.0
Usage
add_filter( 'woocommerce_new_order_note_data', 'filter_function_name_3449' ); function filter_function_name_3449( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce/includes/class-wc-order.php 1700-1717
$commentdata = apply_filters( 'woocommerce_new_order_note_data', array( 'comment_post_ID' => $this->get_id(), 'comment_author' => $comment_author, 'comment_author_email' => $comment_author_email, 'comment_author_url' => '', 'comment_content' => $note, 'comment_agent' => 'WooCommerce', 'comment_type' => 'order_note', 'comment_parent' => 0, 'comment_approved' => 1, ), array( 'order_id' => $this->get_id(), 'is_customer_note' => $is_customer_note, ) );