Allow changing of the theme footer text easily from the dashboard
You can use the
footer_text() function to display the footer text, or the
get_footer_text() function to return it for use in PHP. These template tags should generally be used in the
footer.php file of your theme.
footer_text() function outputs the formatted footer text and accepts three parameters:
$before will be outputted before the text,
$after will be outputted after the text, and
$default will be used instead of the text is none is set. If no text is set
$default is empty, nothing will be displayed.
get_footer_text() function returns the formatted footer text and accepts one parameter:
$default, which will be returned if no text is set.
If the plugin isn't active, the template tag will result in an error. To solve this, you can use an action hook instead:
do_action( 'footer_text', $default, $before, $after );
This works the same as calling the
footer_text() function, and any of the three arguments can be omitted.
Requires: 3.3 or higher
Compatible up to: 4.3.6
Last Updated: 1 year ago
Active Installs: 8,000+
0 of 1 support threads in the last two months have been marked resolved.
Got something to say? Need help?