Add nofollow for column data type image or button
-
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.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add nofollow for column data type image or button’ is closed to new replies.