woocommerce_admin_stock_html, $stock_html, $product

woocommerce_admin_stock_html, $stock_html, $product

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_admin_stock_html, $stock_html, $product') is found 1 times:

  • /includes/admin/reports/class-wc-report-stock.php line 122
    					$stock_html = '<mark class="instock">' . __( 'In stock', 'woocommerce' ) . '</mark>';
    				} else {
    					$stock_html = '<mark class="outofstock">' . __( 'Out of stock', 'woocommerce' ) . '</mark>';
    				}
    				echo apply_filters( 'woocommerce_admin_stock_html', $stock_html, $product );
    				break;
    
    			case 'stock_level':
    				echo esc_html( $product->get_stock_quantity() );
    				break;