This function executes in the footer.php file after the WordPress footer hook wp_footer() and loads the entire theme footer code. This function can be overridden and replaced with your own footer instead of the default theme footer.
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_footer', 'your_function' ); |
Example
function unhook_appthemes_functions() { // let's remove the default ClassiPress theme footer remove_action('appthemes_footer', 'cp_do_footer'); } add_action('init','unhook_appthemes_functions'); // use this custom footer instead function insert_your_own_footer() { // some footer code here } add_action( 'appthemes_footer', 'insert_your_own_footer' ); |
Changelog
- since 1.1
Source File
appthemes_footer()
is located in footer.php
.