'
',
'sep' => ', ',
'after' => '',
'label' => __( 'Category', 'tribe-events-calendar' ),
'label_before' => '',
'label_after' => '',
'wrap_before' => '',
'wrap_after' => ''
);
echo apply_filters( 'tribe_meta_event_cats', tribe_get_event_categories( get_the_ID(), $args ) );
}
}
if ( !function_exists( 'tribe_get_all_day' ) ) {
/**
* @deprecated
*/
function tribe_get_all_day( $postId = null ) {
_deprecated_function( __FUNCTION__, '3.0', 'tribe_event_is_all_day( $postId )' );
return apply_filters( 'tribe_get_all_day', tribe_event_is_all_day( $postId ) );
}
}
if ( !function_exists( 'tribe_is_multiday' ) ) {
/**
* @deprecated
*/
function tribe_is_multiday( $postId = null ) {
_deprecated_function( __FUNCTION__, '3.0', 'tribe_event_is_multiday( $postId )' );
return apply_filters( 'tribe_is_multiday', tribe_event_is_multiday( $postId ) );
}
}
/**** CALENDAR / GRID / MONTH VIEW DEPRECATED TAGS *****/
/**
* Calendar Grid (Display)
*
* Display the full size grid calendar table
*
* @deprecated
* @uses load_template()
* @since 2.0
*/
function tribe_calendar_grid() {
_deprecated_function( __FUNCTION__, '3.0', 'tribe_show_month()' );
return tribe_show_month();
}
/**
* Calendar Mini Grid (Display)
*
* Displays the mini grid calendar table (usually in a widget)
*
* @deprecated
* @uses load_template()
* @since 2.0
*/
function tribe_calendar_mini_grid() {
_deprecated_function( __FUNCTION__, '3.0' );
}
/**
* Sort Events by Day
*
* Maps events to days of the month.
*
* @deprecated
* @param array $results Array of events from tribe_get_events()
* @param string $date
* @return array Days of the month with events as values
* @since 2.0
*/
function tribe_sort_by_month( $results, $date ) {
_deprecated_function( __FUNCTION__, '3.0' );
}
/**
* Month / Year Dropdown Selector (Display)
*
* Display the year & month dropdowns. JavaScript in the resources/events-admin.js file will autosubmit on the change event.
*
* @deprecated
* @param string $prefix A prefix to add to the ID of the calendar elements. This allows you to reuse the calendar on the same page.
* @param string|null $date
* @since 2.0
*/
function tribe_month_year_dropdowns( $prefix = '', $date = null ) {
_deprecated_function( __FUNCTION__, '3.0' );
}
/**
* Link to This Month
*
* Returns a link to the currently displayed month (if in "jump to month" mode)
*
* @deprecated
* @return string URL
* @since 2.0
*/
function tribe_get_this_month_link() {
_deprecated_function( __FUNCTION__, '3.0' );
}
/**
* Current Month Date
*
* Returns a formatted date string of the currently displayed month (in "jump to month" mode)
*
* @deprecated
* @return string Name of the displayed month.
* @since 2.0
*/
function tribe_get_displayed_month() {
_deprecated_function( __FUNCTION__, '3.0' );
}
/**
* @deprecated
*/
function tribe_get_display_day_title( $day, $monthView, $date ){
_deprecated_function( __FUNCTION__, '3.0' );
}
/**
* @deprecated
*/
function tribe_the_display_day( $day, $monthView ){
_deprecated_function( __FUNCTION__, '3.0' );
}
/**
* @deprecated
*/
function tribe_get_display_day( $day, $monthView ){
_deprecated_function( __FUNCTION__, '3.0' );
}
/**** GENERAL DEPRECATED TAGS *****/
/**
* tribe_get_object_property_from_array loop through an array of objects to retrieve a single property
*
* @deprecated
* @param array $array_objects
* @param string $property
* @return array
*/
function tribe_get_object_property_from_array( $array_objects = array(), $property = null ) {
_deprecated_function( __FUNCTION__, '3.0', 'wp_list_pluck()' );
return wp_list_pluck($array_objects, $property);
}
/**** WIDGET DEPRECATED TAGS *****/
/**
* @deprecated
*/
function tribe_mini_display_day( $day, $monthView ) {
_deprecated_function( __FUNCTION__, '3.0' );
}
}