Last active
April 26, 2019 08:12
-
-
Save iamgabrielma/e9d8de61eb3a169f0c63a15da74ce58b to your computer and use it in GitHub Desktop.
WP Job Manager - Remove “Listing Expires” column from Job Dashboard
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
/* 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