Tribe__Events__Community__Main::possibly_show_event_cost()
Show event cost if created in Community Events and has cost
Source
File: src/Tribe/Main.php
public function possibly_show_event_cost() {
global $post;
if ( ! $post || ! Tribe__Admin__Helpers::instance()->is_screen() ) {
return;
}
$origin = tribe_get_event_meta( $post->ID, '_EventOrigin', true );
$cost = tribe_get_event_meta( $post->ID, '_EventCost', true );
if ( $this->filterPostOrigin() === $origin && $cost ) {
add_filter( 'tribe_events_admin_show_cost_field', '__return_true' );
}
}
Changelog
| Version | Description |
|---|---|
| 4.5.3 | Introduced. |