function rcl_fill_price_column($column_name, $post_id) { switch ($column_name) { case 'price': echo '<input type="text" id="price-product-' . $post_id . '" name="price-product" size="4" value="' . get_post_meta($post_id, 'price-products', 1) . '"> ' . rcl_get_current_type_currency($post_id) . ' <input type="button" class="recall-button edit-price-product" product="' . $post_id . '" id="product-' . $post_id . '" value="Ок">'; break; } }
function get_current_currency($post_id) { $current = rcl_get_current_type_currency($post_id); return rcl_get_currency($current, 1); }