@cais
Thanks for your help 🙂
I found that the Link To default setting is write in thewp-includes/js/dist/block-library(min).js file at Line 3584.
`
linkDestination: {
type: ‘string’,
default: ‘none’
},
`
After I change the default to media , every image that I insert into the post , is Link To Media File as default now.
But I don’t know how to change the default value in the function.php file
@cais
Sorry for my poor English. Maybe my expression is not very clear.
When I insert a image block into the post , the Image Block Settings -> Link Settings -> Link To -> 'None' . The default is set to None .
I just want to know , how can I change the default setting to Media File .
And I just find the documentation and some post said that I can change the options.php -> image_default_link_type to file , but it doesn’t work.