has_action() ) { return; } $type = $this->object->action['ref_type']; $post_id = $this->object->q_id; if ( 'answer' === $type && ! empty( $this->object->a_id ) ) { $post_id = $this->object->a_id; } elseif ( 'post' === $type && ! empty( $this->object->a_id ) ) { $post_id = $this->object->a_id; } if ( 'comment' === $type && ap_user_can_read_comment( $this->object->c_id ) ) { echo get_comment_excerpt( $this->object->c_id ) . '' . __( 'View comment', 'anspress-question-answer' ) . ''; } elseif ( ! empty( $post_id ) && ! $this->in_group ) { echo '' . get_the_title( $post_id ) . ''; }