Last active
February 15, 2024 17:33
-
-
Save quantumleap33/ef77205bddc55e74be7822c7cecd2e8e to your computer and use it in GitHub Desktop.
generate_page_hero_output shortcode example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'generate_page_hero_output', function( $output, $options ) { | |
return sprintf( | |
'<div class="%1$s"> | |
<div class="%2$s"> | |
%3$s | |
</div> | |
<div> | |
<?php echo do_shortcode("[searchform post_types="tutorial"]"); ?> | |
</div> | |
</div>', | |
trim( $options['container_classes'] ), | |
trim( $options['inner_container_classes'] ), | |
$options['content'] | |
); | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment