Created
June 15, 2015 11:54
-
-
Save tribulant/1eb267f55a7a1f33ca58 to your computer and use it in GitHub Desktop.
Newsletters: Filter - newsletters_admin_subscribers_table_columns Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_subscribers_table_columns($columns = array()) { | |
// do something with the subscribers columns... | |
// maybe hide the registered column? | |
unset($columns['registered']); | |
// add a new, custom column | |
$columns['mycolumn'] = "My Custom Column"; | |
return $columns; | |
} | |
add_filter('newsletters_admin_subscribers_table_columns', 'my_subscribers_table_columns', 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment