Skip to content

Instantly share code, notes, and snippets.

@mattiasghodsian
Last active April 28, 2023 08:37
Show Gist options
  • Select an option

  • Save mattiasghodsian/0ee9ea1249a2d08576e5d7e7241f588f to your computer and use it in GitHub Desktop.

Select an option

Save mattiasghodsian/0ee9ea1249a2d08576e5d7e7241f588f to your computer and use it in GitHub Desktop.
[Wordpress] Append text before comment form
/**
* 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