New answers tagged

0

For admin area you can use admin_notices: https://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices For public area (front end) you would probably need to output to some hook and insert the proper CSS. You could use wp_footer() for that, which is present in every theme (or at least should be) and is inside the body tag.


0

I did it the long way, with help from a related WordPress.org support thread: add_action('comment_post', 'notify_author_of_reply', 10, 2); function notify_author_of_reply($comment_id, $approved){ $comment = get_comment($comment_id); $post_id = $comment->comment_post_ID; $post = get_post($post_id); if($approved && (get_post_type( ...



Top 50 recent answers are included