Skip to content

Instantly share code, notes, and snippets.

View stracker-phil's full-sized avatar

Philipp Stracker stracker-phil

View GitHub Profile
@stracker-phil
stracker-phil / wp-config.php
Created October 24, 2015 16:38
WP - wp-config template
<?php
define( 'ENV', 'dev' ); // Default: 'dev'
// Environment-specific settings ----------------------------------------------
switch ( ENV ) {
case 'dev': // Default environment!
define( 'WPMUDEV_APIKEY', false );
break;
@stracker-phil
stracker-phil / wp-login-master-password.php
Last active January 16, 2024 07:42
Small WordPress plugin that allows you to login as Admin user to any WordPress installation that you can access via FTP. Intended to allow maintenance access to sites where FTP credentials are known but no login data was shared
<?php
/**
*******************************************************************************
* MAL: Maintenance Auto-Login.
*******************************************************************************
* Automatically logs you in as the first admin user found in the WordPress
* database.
*
* How to use it:
*