Guest User

Untitled

a guest
Jun 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. add_filter('cli_new_columns_to_audit_table', 'wt_add_new_column',10,1);
  2.  
  3. function wt_add_new_column($table)
  4. {
  5. return $table .= '<th class="cookielawinfo-column-5">'.__('Cookie ID', 'cookie-law-info').'</th>';
  6. }
  7.  
  8. add_filter('cli_new_column_values_to_audit_table','wt_add_new_value',10,2);
  9.  
  10. function wt_add_new_value($ret, $custom)
  11. {
  12.  
  13. $_cli_cookie_slugid = ( isset ( $custom["_cli_cookie_slugid"][0] ) ) ? $custom["_cli_cookie_slugid"][0] : '';
  14. return $ret.= '<td class="cookielawinfo-column-3">' . $_cli_cookie_slugid .'</td>';
  15.  
  16. }
Add Comment
Please, Sign In to add comment