Home / How to Get Vendor ID? (snippet 1)
Duplicate Snippet

Embed Snippet on Your Site

How to Get Vendor ID? (snippet 1)

The following code can be used with any of the above post types or any other post types that have been exposed to the vendor dashboard.

Code Preview
php
<?php
$vendor_id = get_post_field( 'post_author', $post_id );

Comments

Add a Comment