Last active
April 28, 2023 08:37
-
-
Save mattiasghodsian/0ee9ea1249a2d08576e5d7e7241f588f to your computer and use it in GitHub Desktop.
[Wordpress] Append text before comment form
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
| /** | |
| * Title: Append text before comment form | |
| * Author: Mattias Ghodsian | |
| * Donate a cup of coffee: https://www.buymeacoffee.com/mattiasghodsian | |
| * Donate Eth: 0xBBB96204E45D11C9799c6B12E6eE6F0d4A071Ef5 | |
| **/ | |
| add_action('comment_form_before', 'text_before_comment_form'); | |
| function text_before_comment_form() { | |
| echo '<h4>Hello world</h4>'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment