Skip to content

Instantly share code, notes, and snippets.

@MrVibe
Created March 27, 2015 13:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrVibe/1889ed763207ecf5d5c6 to your computer and use it in GitHub Desktop.
Save MrVibe/1889ed763207ecf5d5c6 to your computer and use it in GitHub Desktop.
For WPengine Hosted sites
<?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