Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2021 16:37
What would you like to do?
YOURLS plugin : automatically login with yourls/yourls (for test installs)
Plugin Name: login yourls password yourls
Description: Just as the name says
Version: 0.1
Author: Ozh
// No direct call
if( !defined( 'YOURLS_ABSPATH' ) ) die();
yourls_add_action( 'login_form_bottom', 'ozh_login_yourls' );
function ozh_login_yourls( $context ) {
echo <<<EOD
document.write('<span class="error">( ☠ login/password auto fill ☠ )</span>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment