WordPress php hook rather than short-code

Is there a direct php function to display Hype Animations in a WordPress environment?

For instance, would [hypeanimations_anim id=“9”] as a short code be directly accessible/executable via a function call such as <?php hypeanimations_anim(9) ?> ?

I’m hand Coding some conditional regions to a WordPress Theme and would like to execute a hype animation based on a Custom Region hook. I’m already doing this with LayerSlider in a similar fashion so just need to know what the existing Hype coding is expecting when removed from the Shortcode.

Yup, here’s more info on that:

<?php echo do_shortcode( '[hype_animations_anim="12"]' ); ?>

Ahhh so WP has a function to allow programmatic access to short codes… Perfect… Thank you Daniel!

1 Like

Glad that does the trick – Here’s a bit more info on it: https://developer.wordpress.org/reference/functions/do_shortcode/