extra field store page
-
hi I am trying to add an extra field as a button by returning the store(vendor) user nickname next to link
add_action( 'dokan_store_header_info_fields', 'sold_by', 10); function sold_by(){ ?> </a> <?php $author = get_user_by( 'id', $seller ); $store_info = dokan_get_store_info( $author->ID ); ?> <span class="button"> <?php printf( '<a href=https://www.gamerhype.net/inbox/?new-message&fast=1&to=%s>Contact Seller</a>', esc_html__( $author->user_nicename ) ); ?> </span> <?php }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘extra field store page’ is closed to new replies.