Created
November 23, 2015 09:58
-
-
Save mikejolley/1650c51db4c605e822de to your computer and use it in GitHub Desktop.
WP Job Manager - Changing Dashboard Columns
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
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