Skip to content

Instantly share code, notes, and snippets.

@mohammadmursaleen
mohammadmursaleen / email_notification_customize.php
Last active December 29, 2023 15:21
WordPress Plugin - Dynamically Generate Password and send in email Notification to Admin and New user
<?php
/*
Plugin Name: New Register Email Customizer
Description: Changes the copy in the email sent out to new users
Author: Mohammad Mursaleen
*/
// Redefine user notification function
if ( !function_exists('wp_new_user_notification') ) {
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE