• Whats the best way of doing this. I want the email notifications to authors of comments posted to include an “Approve This” link along with the others. Why this isnt standard is beyond me. Regardless….

    The code for wp_notify_postauthors is in pluggable.php….I obviously dont want to hack the core files, so I added this code to my functions.php template file….

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Problem now, I get 2 emails…one with exactly what I want, and still the old version of wp_notify_postauthor in pluggable.php. I tried all sorts of remove_action and sorts to STOP the pluggable function from executing to no avail.

    Is what I am doing the best way, or should I somehow append the function wp_notify_postauthor to add the line of code I need?? And is there a way to just stop the original wp_notify_postauthor function from executing?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Functions.php Theme Template’ is closed to new replies.