Untitled
unknown
plain_text
7 months ago
895 B
5
Indexable
public function posted_by()
{
$store_url = '#';
$seller_id = get_the_author_meta('ID');
$store_info = dokan_get_store_info($seller_id);
$store_url = dokan_get_store_url($seller_id);
$byline = sprintf(
/* translators: %s: post author. */
esc_html_x(' %s', 'post author', 'dpmarket'),
'<a class="post-by url fn n" href="' . $store_url . '"> '. $store_info['store_name'] . '</a>');
echo '<span class="user"> ' . $byline . '</span>'; // WPCS: XSS OK.
}
public function posted_by_url()
{
$store_url = '#';
$seller_id = get_the_author_meta('ID');
$store_info = dokan_get_store_info($seller_id);
$store_url = dokan_get_store_url($seller_id);
echo $store_url;
}Editor is loading...
Leave a Comment