PULKA: nasel jsem tohle
How to Automatically Remove Default Image Links in WordPress
http://www.wpbeginner.com/wp-tutorials/automatically-remove-default-image-links-wordpress/
tam je ukazka na odebirani typu takze by misto non stacilo dat file?
function wpb_imagelink_setup() {
$image_set = get_option( 'image_default_link_type' );
if ($image_set !== 'none') {
update_option('image_default_link_type', 'none');
}
}
add_action('admin_init', 'wpb_imagelink_setup', 10);
a jeste jeden web
plugins - bulk change of image setting "link to" to "link to: image url " - WordPress Development Stack Exchange
https://wordpress.stackexchange.com/...362/bulk-change-of-image-setting-link-to-to-link-to-image-url
function wpb_imagelink_setup() {
$image_set = get_option( 'image_default_link_type' );
update_option('image_default_link_type', 'file');
}
add_action('admin_init', 'wpb_imagelink_setup', 10);
Ktery z toho bude fungovat? jde mi teda hlavne o ty obrazky, ktery uz tam mam.
Uz jsem si tam nastavil, aby u dalsich vlozenych bylo v zakladu url na media file
díky