/** * generate a YOURLS link when a post is * automatically moved from future to publish * * @param [type] $post_id [description] * @return [type] [description] */ public function yourls_on_schedule($post_id) { YOURLSCreator_Helper::get_single_shorturl($post_id, 'sch'); }