تابع ووکامرسی wc_display_item_meta نمایش جزئیات بیشتر محصول

تابع ووکامرسی wc_display_item_meta – نمایش جزئیات و اطلاعات بیشتر محصول
Syntax – سینتکس
(string|void) wc_display_item_meta( (WC_Item) $item, (array) $args = array() );
Parameters – پارامتر ها (2)
- 1- $item (WC_Item)
- 2- $args (array)
Usage – نحوه استفاده
if ( !function_exists( 'wc_display_item_meta' ) ) {
require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php';
}
// The item.
$item = null;
// The args.
$args = array();
// NOTICE! Understand what this does before running.
$result = wc_display_item_meta($item, $args);
Defined – محل تعریف
/includes/wc-template-functions.php
function wc_display_item_meta( $item, $args = array() ) {
$strings = array();
$html = '';
$args = wp_parse_args( $args, array(
'before' => '',
'separator' => 'versions – نسخه ها
از نسخه : 3.0.0
نسخه فعلی : 3.0.6
دیگر نسخه ها : 3.0.6 , 3.0.5 , 3.0.4 , 3.0.3 , 3.0.2
ارسال نظر