Tag Info

Hot answers tagged

1

You're re-inventing the wheel here ;-) The Problem You're bypassing WordPress with this approach, so that's explains the error message. Accessing any custom file, within your theme directory, will not load WordPress core automatically. Already available This is already supported by the WordPress core. You should check out comments_popup_link() and ...


1

Does anyone know why this 'comment_post' hook doesn't seem to work!? ... When a comment is posted, the function is not triggered... at all? The hook works. Try the following, it works: add_action( 'comment_post', 'test_notify' ); function test_notify($args , $args2) { echo 'It works!'; die; } As does this: add_action( 'comment_post', ...



Only top voted, non community-wiki answers of a minimum length are eligible