woocommerce_admin_order_buyer_name

woocommerce_admin_order_buyer_name

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_order_buyer_name') is found 1 times:

  • /src/Internal/Admin/Orders/ListTable.php line 1014
    		 *
    		 * @param string   $buyer Buyer name.
    		 * @param WC_Order $order Order data.
    		 */
    		$buyer = apply_filters( 'woocommerce_admin_order_buyer_name', $buyer, $order );
    
    		if ( $order->get_status() === 'trash' ) {
    			echo '<strong>#' . esc_attr( $order->get_order_number() ) . ' ' . esc_html( $buyer ) . '</strong>';
    		} else {
    			echo '<a href="#" class="order-preview" data-order-id="' . absint( $order->get_id() ) . '" title="' . esc_attr( __( 'Preview', 'woocommerce' ) ) . '">' . esc_html( __( 'Preview', 'woocommerce' ) ) . '</a>';
    			echo '<a href="' . esc_url( $this->get_order_edit_link( $order ) ) . '" class="order-view"><strong>#' . esc_attr( $order->get_order_number() ) . ' ' . esc_html( $buyer ) . '</strong></a>';