Customize views – hooks not firing? (e.g. tribe_template_after_include)
-
I’m trying to display custom HTML on a single event page.
Using Tribe’s example to debug, just trying to output
<button>Button</button>
after each event’s description. I’m hoping to avoid duplicating the template files but rather to insert using a hook.Here’s what I have:
add_action( 'tribe_template_after_include:events/single-event/content', function( $file, $name, $template ) { echo '<button>Button</button>'; }, 10, 3 );
Is this the correct slug
events/single-event/content
?Or if I wanted to output the html after the title I would use this:
add_action( 'tribe_template_after_include:events/single-event/title', function( $file, $name, $template ) { echo '<button>Button</button>'; }, 10, 3 );
Neither show output on single event pages.
Am I misunderstanding the slug structure? Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Customize views – hooks not firing? (e.g. tribe_template_after_include)’ is closed to new replies.