HEX
Server: LiteSpeed
System: Linux sg-cp4.cloudnetwork.vn 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64
User: thu28850 (1134)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/themes/martfury/template-parts/vendor/loop-sold-by.php
<?php
if ( ! function_exists( 'dokan_get_store_url' ) ) {
	return;
}

global $product;
$author_id = get_post_field( 'post_author', $product->get_id() );
$author    = get_user_by( 'id', $author_id );
if ( empty( $author ) ) {
	return;
}

$shop_info = get_user_meta( $author_id, 'dokan_profile_settings', true );
$shop_name = $author->display_name;
if ( $shop_info && isset( $shop_info['store_name'] ) && $shop_info['store_name'] ) {
	$shop_name = $shop_info['store_name'];
}
?>
<div class="sold-by-meta">
	<span class="sold-by-label"><?php esc_html_e( 'Sold By:', 'martfury' ); ?> </span>
	<a href="<?php echo esc_url( dokan_get_store_url( $author_id ) ); ?>"><?php echo esc_html( $shop_name ); ?></a>
</div>