Events.php
442 Bytes
<?php
namespace ACA\EC\Column\Organizer;
use ACA\EC\Column;
class Events extends Column\Events {
public function __construct() {
parent::__construct();
$this->set_type( 'column-ec-organizer_events' )
->set_label( 'Events' );
}
protected function get_events_by_id( $id, array $args = [] ) {
$args = wp_parse_args( $args, [
'fields' => 'ids',
'organizer' => $id,
] );
return $this->get_events( $args );
}
}