Skip to content

Instantly share code, notes, and snippets.

@ediamin
Created January 2, 2020 16:51
Show Gist options
  • Save ediamin/f47ffac062b6eef28d9a10c7fa501f75 to your computer and use it in GitHub Desktop.
Save ediamin/f47ffac062b6eef28d9a10c7fa501f75 to your computer and use it in GitHub Desktop.
Dokan Reset All Vendor Banner and Gravatar
<?php
$vendors = dokan()->vendor->all();
foreach ( $vendors as $vendor ) {
$vendor->set_banner_id( 0 );
$vendor->set_gravatar_id( 0 );
$vendor->save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment