Created
March 27, 2015 13:50
-
-
Save MrVibe/1889ed763207ecf5d5c6 to your computer and use it in GitHub Desktop.
For WPengine Hosted sites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!class_exists('WPLMS_Customizer_Plugin_Class')) | |
{ | |
class WPLMS_Customizer_Plugin_Class // We'll use this just to avoid function name conflicts | |
{ | |
public function __construct(){ | |
add_filter('wplms_login_widget_action',array($this,'mycustom_login_url')); | |
} // END public function __construct | |
public function activate(){ | |
// ADD Custom Code which you want to run when the plugin is activated | |
} | |
public function deactivate(){ | |
// ADD Custom Code which you want to run when the plugin is de-activated | |
} | |
function mycustom_login_url($login_url){ | |
$login_url .='?wpe-login=mywpengineinstallname'; | |
return $login_url; | |
} | |
// ADD custom Code in clas | |
} // END class WPLMS_Customizer_Class | |
} // END if(!class_exists('WPLMS_Customizer_Class')) | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment