Automatically Insert Into Post when uploading Media

That’s the pre-3.5 media interface so I think you must be on 3.4.x? Anyway the first way should work as long as you’re using the browser (non-multifile) upload… try changing add_filter( ‘flash_uploader’, ‘_force_html_uploader’ ); to add_action( ‘pre-html-upload-ui’, ‘_force_html_uploader’ ); and the “js/upload.js” (note the subdirectory – it’s expected to be in a “js” subdirectory of … Read more

After setting up multisite on localhost, requests to localhost redirect to production domain

OK. I figured it out: When moving to multisite, manually overriding WP_HOME and WP_SITEURL like below doesn’t work anymore: // Overwrites the database to save from constantly editing the DB define(‘WP_HOME’,’http://localhost’); define(‘WP_SITEURL’,’http://localhost/wp’); I fixed this by manually changing the database so WP_HOME is http://localhost and WP_SITEURL is http://localhost/wp.

Is it legal to redefine wp_password_change_notification in a mu plugin?

Here are the contents of a working example, placed in a php file in wp-includes/mu-plugins/. The email is sent when a user completes the password reset action after clicking the reset link in the email they receive. <?php if( ! function_exists( ‘wp_password_change_notification’ ) ){ function wp_password_change_notification( &$user ){ wp_mail( get_option(‘admin_email’), ‘Test’, ‘test’ ); } }

Customize or avoid new admin email address notification

It seems that my edit to your answer was declined, so here you go. All that was missing was the $priority and $accepted_args parameters for the add_action() calls, and the the fixed code below should accomplish what you require. remove_action( ‘add_option_new_admin_email’, ‘update_option_new_admin_email’ ); remove_action( ‘update_option_new_admin_email’, ‘update_option_new_admin_email’ ); /** * Disable the confirmation notices when an … Read more