Inicio

Añade aquí tu texto de cabecera



add_filter(‘raffle_info_filter’, ‘funct_raffle_filter’, 10, 2 );
function funct_raffle_filter( $content, $raffle_obj ){
// $raffle_obj is of type associative array and it has the following keys
// $raffle_id = $raffle_obj[‘raffle_id’]; //raffle id
// $raffle_name = $raffle_obj[‘raffle_name’]; //raffle name
// $start_ticket = $raffle_obj[‘start_ticket’]; //raffle starting number
// $limit_tickets = $raffle_obj[‘limit_tickets’]; //number of total tickets if not ‘unlimited’, else number
// $sold_tickets = $raffle_obj[‘sold_tickets’]; //number of sold tickets
// $last_sold_ticket = $raffle_obj[‘last_sold_ticket’]; //last sold ticket
// $last_sold_prefixed = $raffle_obj[‘last_sold_prefixed’]; //last sold with prefix
// $prefix = $raffle_obj[‘prefix’]; //prefix
// $start_datetime = $raffle_obj[‘start_datetime’]; //1690911878, 0
// $end_datetime = $raffle_obj[‘end_datetime’]; //1690921878
// $start_date_string = $raffle_obj[‘start_date_string’]; //Tue, 01 Aug 2023 17:44:36 GMT
// $end_date_string = $raffle_obj[‘end_date_string’];
// $is_terminated = $raffle_obj[‘is_terminated’]; // true/false
// $is_raffle = $raffle_obj[‘is_raffle’];
// productid = $raffle_obj[‘productid’];
// tags = $raffle_obj[‘tags’];
$content = «Today is a great day.»;
return $content;
}

Mostrando los 4 resultados

Scroll al inicio