Use array() instead of [] which is not used anywhere else.
* @access public
* @return array events
*/
- //public function getModelEventsData( $categoryId = null, $limit = null, $memberId = null, $amenityId = null, $venueId = null, $cityId = null, $isNameSearch = false )
public function getModelEventsData( $event_config )
{
// Initialize $is_name_search to false.
$is_name_search = false;
// Setup of defaults.
- $defaults = [
+ $defaults = array(
'categories' => null,
'event_name' => null,
'member_id' => null,
'venue_id' => null,
'city_id' => null,
'limit' => null,
- ];
+ );
// Merge the default and event_config arrays.
$params = array_merge( $defaults, $event_config );
wp_enqueue_script('event-dashboard-js');
wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
- $event_config = [
+ $event_config = array(
'categories' => $categoryId,
'event_name' => $eventNameSearch,
'member_id' => $memberId,
'venue_id' => $venueId,
'city_id' => $cityId,
'limit' => $limit,
- ];
+ );
switch ( $action ) {
case 'front-page':