Last active
February 15, 2024 18:47
-
-
Save quantumleap33/0c4112d1b8070550583295e6e454a7ef to your computer and use it in GitHub Desktop.
generate_page_hero_output shortcode example 2
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> | |
[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