comment_on_trash

comment_on_trash

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('comment_on_trash') is found 1 times:

  • /wp-includes/comment.php line 3586
    		 * @since 2.9.0
    		 *
    		 * @param int $comment_post_id Post ID.
    		 */
    		do_action( 'comment_on_trash', $comment_post_id );
    
    		return new WP_Error( 'comment_on_trash' );
    
    	} elseif ( ! $status_obj->public && ! $status_obj->private ) {
    
    		/**