Luca

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Hooks running before \'functions.php\' #1515533
    Luca
    Participant

    Ok I managed it in a different way:

    add_action( 'loop_start', 'tribe_events_insertion' ); // Could also be "loop_end" for code AFTER the event
    function tribe_events_insertion() {
      if ( get_post_type( get_the_ID() ) == 'tribe_events' ) {
        // Extra Code		
      }
    }

    … if anyone else ever needs this …

    in reply to: Hooks running before \'functions.php\' #1515480
    Luca
    Participant

    I’ve checked ALL of the tips in the article, nothing is wrong with anything mentioned there.

    What confuses me is, if I run the hook myself via do_action directly after my code on the functions.php it works perfectly as intended. But, as I mentioned earlier, on the wrong position.

    So I guess my code is not the problem. I just need to get my code running before the plugin code, maybe?

Viewing 2 posts - 1 through 2 (of 2 total)