function pbs_passport_authenticate_activation() { // init the object, which will setup the object $plugin_obj = new PBS_Passport_Authenticate(__FILE__); $plugin_obj->setup_rewrite_rules(); flush_rewrite_rules(); }