Last active
June 18, 2022 10:33
-
-
Save Codevz/bbe6f50b7cab0f4672e6d23aa3927c3d to your computer and use it in GitHub Desktop.
XTRA WP Theme - Action hook for adding content after post title and date in single post pages, https://xtratheme.com/
This file contains hidden or 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
| <?php | |
| /** | |
| * With this function you can add any content or php codes after title and date section in single post page. | |
| * | |
| * @var $post current post object | |
| */ | |
| function my_prefix_after_title_date( $post ) { | |
| if ( $post->ID === 46 ) { | |
| echo 'This is a custom content text.'; | |
| } | |
| } | |
| add_action( 'codevz/single/after_title_date', 'my_prefix_after_title_date' ); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to see more actions and hooks of XTRA WP theme, Please check out documentation here https://xtratheme.com/docs/developer/