Created
October 13, 2014 01:48
-
-
Save wpspeak/ceb981b777fa19f26ccb to your computer and use it in GitHub Desktop.
Set default attachment display settings, alignment, link to, size in wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Set default attachment display settings, alignment, link to, size in wordpress | |
* @Url http://wpsnipp.com/index.php/functions-php/set-default-attachment-display-settings-alignment-link-size-wordpress/ | |
*/ | |
function wps_attachment_display_settings() { | |
update_option( 'image_default_align', 'left' ); | |
update_option( 'image_default_link_type', 'none' ); | |
update_option( 'image_default_size', 'large' ); | |
} | |
add_action( 'after_setup_theme', 'wps_attachment_display_settings' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment