Your cart is currently empty!
Ingresos y gastos
/*
* Añadir campos de Ingreso y Egreso a la Información del Contenedor
*/
add_filter(‘wpc_container_info_fields’, ‘add_ingreso_egreso_fields’, 10, 1);
function add_ingreso_egreso_fields($fields) {
// Campo de Ingreso
$fields[‘container_ingreso’] = array(
‘id’ => ‘container_ingreso’,
‘label’ => ‘Ingreso’,
‘field’ => ‘text’,
‘field_type’ => ‘number’,
‘required’ => false,
‘options’ => array(),
‘field_data’ => array(),
‘field_key’ => ‘container_ingreso’
);
// Campo de Egreso
$fields[‘container_egreso’] = array(
‘id’ => ‘container_egreso’,
‘label’ => ‘Egreso’,
‘field’ => ‘text’,
‘field_type’ => ‘number’,
‘required’ => false,
‘options’ => array(),
‘field_data’ => array(),
‘field_key’ => ‘container_egreso’
);
return $fields;
}