Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_item_author_url()privateWC 1.0

Gets the item author URL.

Method of the class: ReviewsListTable{}

No Hooks.

Return

String.

Usage

// private - for code of main (parent) class only
$result = $this->get_item_author_url() : string;

ReviewsListTable::get_item_author_url() code WC 8.7.0

private function get_item_author_url() : string {

	$author_url = get_comment_author_url();
	$protocols = [ 'https://', 'http://' ];

	if ( in_array( $author_url, $protocols ) ) {
		$author_url = '';
	}

	return $author_url;
}