Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_item_author_url()privateWC 1.0

Gets the item author URL.

Метод класса: ReviewsListTable{}

No Hooks.

Return

String.

Usage

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

Code of ReviewsListTable::get_item_author_url() WC 7.1.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;
}