HEX
Server: Apache/2
System: Linux sm.stlbg.net 3.10.0-962.3.2.lve1.5.87.el7.x86_64 #1 SMP Tue Jan 28 09:38:56 UTC 2025 x86_64
User: todorterziev (1053)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/todorterziev/public_html/wp-content/plugins/element-helper/classes/element-el-event.php
<?php

namespace ElementHelper;

defined('ABSPATH') || die();

class _Event
{

    /**
     * Instance
     *
     * @since 1.0.0
     *
     * @access private
     * @static
     *
     * @var ElementHelper The single instance of the class.
     */
    private static $_instance = null;

    /**
     * Instance
     *
     * Ensures only one instance of the class is loaded or can be loaded.
     *
     * @return ElementHelper An instance of the class.
     * @since 1.0.0
     *
     * @access public
     * @static
     *
     */
    public static function instance()
    {

        if (is_null(self::$_instance)) {
            self::$_instance = new self();
        }

        return self::$_instance;

    }

    public static function tribe_get_venue( $postId = null ) {
        $venue_id = tribe_get_venue_id( $postId );
        $venue    = ( $venue_id > 0 ) ? esc_html( get_the_title( $venue_id ) ) : null;

        /**
         * Allows customization of the retrieved venue name for a specified event.
         *
         * @since ??
         * @since 4.5.12 Added docblock and venue ID to filter.
         *
         * @param string $venue The name of the retrieved venue.
         * @param int $venue_id The venue ID.
         */
        return apply_filters( 'tribe_get_venue', $venue, $venue_id );
    }

    public static function tribe_get_cost( $post_id = null, $with_currency_symbol = false ) {
        $cost_utils = tribe( 'tec.cost-utils' );
        $cost = $cost_utils->get_formatted_event_cost( $post_id, $with_currency_symbol );

        return apply_filters( 'tribe_get_cost', $cost, $post_id, $with_currency_symbol );
    }


}

El_Helper_Event::instance();