This function executes in the page.php file and runs after the loop is completed.
Usage
This hook provides no parameters. You use this hook by having your function echo output to the browser, or by having it perform background tasks. Your functions shouldn’t return, and shouldn’t take any parameters.
add_action( 'appthemes_after_page_loop', 'your_function' ); |
Example: Feedback
You can use this hook to add things like feedback messages, legal disclaimers, or other information your readers should know after reading a page.
<?php function insert_feedback() { echo '<div class="feedback">' . __( 'Questions? Comments? Concerns? Email us at', 'appthemes') . '<a href="mailto:info@example.com">' . __('info@example.com', 'appthemes') .'</a></div>'; } add_action( 'appthemes_after_page_loop', 'insert_feedback' ); ?> |
Changelog
- since 1.1
Source File
appthemes_after_page_loop()
is located in page.php
.