Widget_Month::get_shortcode_args()
Fetches the arguments that we will pass down to the shortcode.
See also
Return
(array) Arguments passed down to the shortcode.
Source
File: src/Tribe/Views/V2/Widgets/Widget_Month.php
public function get_shortcode_args() {
$default_args = $this->get_default_shortcode_args();
$args = [
'month_events_per_day' => $this->arguments['count'],
];
if ( ! empty( $this->arguments['filters'] ) ) {
/* @var Taxonomy_Filter $taxonomy_filters */
$taxonomy_filters = tribe( 'pro.views.v2.widgets.taxonomy' );
$args = $taxonomy_filters->set_shortcode_taxonomy_params( $args, $this->arguments['filters'], $this->arguments['operand'] );
}
return array_merge( $default_args, $args );
}
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |