Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created November 23, 2015 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikejolley/1650c51db4c605e822de to your computer and use it in GitHub Desktop.
Save mikejolley/1650c51db4c605e822de to your computer and use it in GitHub Desktop.
WP Job Manager - Changing Dashboard Columns
add_filter( 'job_manager_job_dashboard_columns', 'custom_job_manager_job_dashboard_columns' );
/**
* Columns are the existing columns found here: https://github.com/Automattic/WP-Job-Manager/blob/master/includes/class-wp-job-manager-shortcodes.php#L161-L166
*/
function custom_job_manager_job_dashboard_columns( $columns ) {
// Add a colunn
$columns['new_column'] = 'New Column Heading';
// Remove a column
unset( $columns['job_listing_category'] );
// Change a heading on existing column
$columns['job_location'] = 'Changed Heading';
// Return
return $columns;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment