Automattic\WooCommerce\Internal\CostOfGoodsSold
CostOfGoodsSoldController::get_general_cost_edit_field_tooltip
Get the tooltip text for the COGS value field in the product editor.
Метод класса: CostOfGoodsSoldController{}
Хуков нет.
Возвращает
string. The string to use as tooltip (translated but not escaped).
Использование
$CostOfGoodsSoldController = new CostOfGoodsSoldController(); $CostOfGoodsSoldController->get_general_cost_edit_field_tooltip( $for_variable_products );
- $for_variable_products(true|false) (обязательный)
- True to get the value for variable products, false for other types of products.
Код CostOfGoodsSoldController::get_general_cost_edit_field_tooltip() CostOfGoodsSoldController::get general cost edit field tooltip WC 11.2.2
public function get_general_cost_edit_field_tooltip( bool $for_variable_products ) {
return $for_variable_products ?
__( 'Add the amount it costs you to buy or make this product. This will be applied as the default value for variations.', 'woocommerce' ) :
__( 'Add the amount it costs you to buy or make this product.', 'woocommerce' );
}