Where are the PHP Parsing and SQL scripts?

Home Forums Calendar Products Events Calendar PRO Where are the PHP Parsing and SQL scripts?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1109381
    fifteen15studios
    Participant

    Hi Modern Tribe,

    We’re planning to tackle some of the root functions but would like to help navigating the structure. We’d like to find the parts of the script (PHP) which parse the script and sort all the results. We want to find the MySQL commands which display the data based on certain filters and conditions. Where can we find these scripts? (We have Advanced Filters and Events Pro).

    We think there’s a function in PHP which does this query but we can’t find where it’s declared or called. Any assistance would be much appreciated!

    Thank you!
    Brendan

    #1109550
    George
    Participant

    Hey Brendan,

    Thanks for reaching out. Our plugin files are all entirely self-contained in the zip files you can download for the plugins at http://theeventscalendar.com/my-account/downloads.’

    We cannot help with custom development projects or give file-by-file walkthroughs of code, as elaborated upon on this page which I encourage you to check out → https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/

    If you’re simply looking for where filters are applied and such, and results are retrieved, then there are a few things you can search for in your code editor of choice. Look for instances of WP_Query, for example. Look for anything hooked to the WordPress action pre_get_posts(). Look for instances of the function tribe_get_events().

    Looking for instances of $wpdb should also be helpful.

    Sincerely,
    George

    #1109561
    fifteen15studios
    Participant

    Ok, thanks for the help. I ran a full-text search for all of those functions and I got zero results for each. Maybe I’m doing something wrong, but I tried other functions, and they showed up.

    #1109823
    George
    Participant

    Interesting—if you’re not using this method already, I would recommend getting a solid text editor like Sublime Text. This editor or any similar one should have a “Find in Folder” feature. Search for the phrase “tribe_get_events(” without quotes—and yes, with just that one first open parentheses tag. It looks weird, but remove the quotes and it’s correct!

    Best of luck with your tinkering!
    George

    #1115435
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Where are the PHP Parsing and SQL scripts?’ is closed to new replies.