Cannot redeclare wp_notify_postauthor()
-
I am trying to run
function wp_notify_postauthor( $comment_id, $deprecated = null ) {
if ( null !== $deprecated ) {
_deprecated_argument( __FUNCTION__, ‘3.8.0’ );
}$comment = get_comment( $comment_id );
if ( empty( $comment ) || empty( $comment->comment_post_ID ) )
return false;
.
.
.add_action( ‘comment_post’, ‘wp_notify_postauthor’, 10, 2 );
but I get the following error…
Cannot redeclare wp_notify_postauthor() (previously declared in /srv/users/serverpilot/apps/wordpress/public/wp-includes/pluggable.php:1383)
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Cannot redeclare wp_notify_postauthor()’ is closed to new replies.