Set default options for inserting media

You can do this in two ways. If you want to keep it theme specific, edit your functions.php file with this code:

add_action( 'after_setup_theme', 'my_new_default_image_settings' );

function my_new_default_image_settings() {
    update_option( 'image_default_align', 'right' );
    update_option( 'image_default_link_type', 'file' );
}

The other way to do it is more general, but also more rigid:

  1. Go to YOURSITE.COM/wp-admin/options.php
  2. Find the image_default_link_type field.
  3. Type in file.
  4. Find the image_default_align field.
  5. Type in right.
  6. Scroll to tho bottom and hit Save.

Some helpful references:

Leave a Comment