GetSimple Support Forum

Full Version: Elaborate on get_footer();
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can't seem to understand what get_footer() does. I'm trying to hook a function of a plugin to the footer, but I'm not having luck.
Can someone elaborate on how to implement correctly a footer in a template.

I'm new to GetSimple and I'm enyoing it so far.. I just need to understand the dynamics a little bit better. Thanks for the help in advance.
Hi Julian,

To hook the function into the template (your website frontend), you would actually want to use:

theme-footer.

Demonstrated here:
add_action('theme-footer','FUNTIONNAME',array());
otherwise, if you wanted it to be in anywhere (frontend, backend) you'd want to use:

footer

add_action('footer', 'FUNCTION',array());
Great. Thanks for the quick response.. I tried what you posted and it worked perfectly. Smile
crashfellow Wrote:otherwise, if you wanted it to be in anywhere (frontend, backend) you'd want to use:

footer

add_action('footer', 'FUNCTION',array());

footer is only for the backend's footer. Sorry, too much time squashing bugs - not enough time to create the necessary documentation. Once 2.01 is released and its stable, I will dedicate myself to more thorough docs.
Ohh well that's even better!

So you have one code for front, and one for backend Smile great success! Smile Tongue

But no, that is good. Makes it easier.
i'm a bit doubtful but i think that add_action has the default value null as third parameter, means:
Code:
add_action(.., .., .. = null)

if someone forgets the thrid parameter or believes, that null is ok, he fails. my proposal: replace the interface with
Code:
add_action(.., .., .. = array())

comments?