Wicked Calendar Guide

wicked_build_event_query()

Returns an array of arguments that can be passed to WP_Query to fetch events.  This is useful if you’d like to create your own query (such as for a paged list of events).  The function accepts an array of arguments that will be used to generate an arguments array that can be used with WP_Query.

Usage

<?php
$query = wicked_build_event_query( $args );
$events = new WP_Query( $query );
?>

Parameters

$args
(array) (optional) The arguments are the same as those accepted by wicked_get_events().  Please see the parameters section of the wicked_get_events() documentation for details.

Return Value

(array)
Array of arguments that can be passed to WP_Query.