function change_tribe_events_head() {
if ( tribe_is_event_query() ) {
//change header image here
}
}
add_action( 'catchevolution_after_header', 'change_tribe_events_head');
changing header image using a hook
Hi,
i would like to change the header image which appears in one of my plugins inner pages.currently it uses the default image.
im using a query to determine a certian condition and then id'e like to change it.
in my child theme i created a function that hooks to the "catchevolution_after_header" trigger.
what function can i use to the change the header image at this stage?
is it "set_post_thumbnail()" or something else ?
thanks