• Resolved msephton

    (@msephton)


    Hi. Is it possible to bulk edit “open in new tab”?

    I have 432 links that I need to edit so they don’t open in the same window.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    Hello,

    Quick and dirty to make them all open in a new window:

    add_filter( 'simple_links_meta', function( $meta ){
    			$meta[ 'target' ][0] = '_blank';
    			return $meta;
    		});

    To update the actual settings for all the links will take a query.
    Something like:

    UPDATE wp_postmeta SET meta_value = '_blank' WHERE meta_key = 'target';

    Obviously the wp_postmeta may have to change to match your current prefix.

    Hope this helps!

    Thread Starter msephton

    (@msephton)

    Thanks Mat! I’ll use one as a workaround.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bulk edit open in new tab?’ is closed to new replies.