Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Add nofollow for column data type image or button

$
0
0

Replies: 0

I neeed add nofollow to link added to image or buttons column data type.

I used code below, but it is not much elegant:


add_action('ninja_table_js_config', function($tableArray, $filter){

    foreach ( $tableArray['columns'] as &$setting_column ){
        $setting_column['link_target'] = '_blank" rel="nofollow';
    }
    unset($setting_column);

    return $tableArray;
}, 10, 2);

consider adding an option to column setting.

  • This topic was modified 4 minutes ago by MassimoM.

Viewing all articles
Browse latest Browse all 59525

Trending Articles