Created
September 24, 2013 16:08
-
-
Save remkus/6687132 to your computer and use it in GitHub Desktop.
attachement default no link
This file contains 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 | |
add_action( 'admin_init', 'fs_imagelink_setup', 10 ); | |
/** | |
* Set default link option for attachments | |
* | |
* @return void | |
*/ | |
function fs_imagelink_setup() { | |
$image_set = get_option( 'image_default_link_type' ); | |
if ( $image_set !== 'none' ) { | |
update_option( 'image_default_link_type', 'none' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment