Instantly share code, notes, and snippets.

Embed
What would you like to do?
WP Job Manager - Remove “Listing Expires” column from Job Dashboard
/* This snippet removes the “Listing Expires” column from Job Dashboard */
add_filter( 'job_manager_job_dashboard_columns', 'remove_expires_column' );
function remove_expires_column( $columns ) {
unset( $columns['expires'] );
return $columns;
}
/* This snippet removes the “Listing Expires” column from All Jobs in wp-admin */
add_filter( 'manage_edit-job_listing_columns', 'remove_expires_column' );
function remove_expires_column( $columns ) {
unset( $columns['job_expires'] );
return $columns;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment