Created
April 10, 2015 08:22
-
-
Save verytwisty/4b01baae79a66382a9c7 to your computer and use it in GitHub Desktop.
Do Action
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
| <footer> | |
| <?php custom_footer();?> | |
| </footer> |
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 | |
| function custom_footer(){ | |
| do_action('my_footer'); | |
| } | |
| function custom_footer_text(){ | |
| echo "custom footer text"; | |
| } | |
| ?> | |
| <?php // http://wpengineer.com/1302/define-your-own-wordpress-hooks/ ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment