Last active
December 12, 2017 15:01
-
-
Save larodiel/bd12ba19a5cea1b7ff729fefbc850f04 to your computer and use it in GitHub Desktop.
Wordpress image default change
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
function vl_default_image_size () { | |
return 'full'; | |
} | |
add_filter( 'pre_option_image_default_size', 'vl_default_image_size' ); | |
function vl_default_image_settings() { | |
update_option( 'image_default_align', 'center' ); | |
update_option( 'image_default_link_type', 'none' ); | |
update_option( 'image_default_size', 'full' ); | |
} | |
add_action( 'after_setup_theme', 'vl_default_image_settings' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment