• dave

    (@mozdzanowski)


    Is there a setting I can choose to open all file links in a new window/tab?

    I found this for a different file-handling plugin:

    function download_new_tab( $styles ) {
    
    	$styles['new_tab'] = array(
     		'name'		=> __( 'New Tab', 'delightful-downloads' ),
     		'format'	=> '<a href="%url%" title="%title%" target="_blank" rel="nofollow">%title%</a>'
    	);
    
    	return $styles;
    }
    add_filter( 'dedo_get_styles', 'download_new_tab' );

    Is there a similar hook/filter/action used in File Groups that I could use to modify the link output?

    https://wordpress.org/plugins/file-groups/

  • The topic ‘Open all links in new tab/window’ is closed to new replies.