lps 71 Posting Pro in Training

Good day,
I am having problem with the wordpress add_action function. currently, I tried the code provided in wordpress.org forum without success:

function echo_comment_id( $comment_ID ) 
   echo "I just received $comment_ID";
add_action( 'comment_id_not_found', 'echo_comment_id', 10, 1 );

When I run the code, $comment_ID does not appear. Any help will be appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.