Skip to content

Instantly share code, notes, and snippets.

@iamgabrielma
Last active April 26, 2019 08:12
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 iamgabrielma/e9d8de61eb3a169f0c63a15da74ce58b to your computer and use it in GitHub Desktop.
Save iamgabrielma/e9d8de61eb3a169f0c63a15da74ce58b to your computer and use it in GitHub Desktop.
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_admin' );
function remove_expires_column_admin( $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