Update wholesaler-plugin.php

global $post;