Unregister any WordPress taxonomy
<?php if (!defined('ABSPATH')) die('Restricted Area'); | |
/* | |
* Plugin Name: Unregister Taxonomies | |
* Description: Properly disable any WordPress taxonomy. | |
* Version: 20160901 | |
* Author: Aurélien Denis (Neticpro) | |
* Author URI: https://wpchannel.com/desactiver-taxonomie-type-de-contenu-personnalise/ | |
*/ | |
function wpc_unregister_job_listing_type() { | |
unregister_taxonomy('job_listing_type'); // Specify the taxonomy to unregister | |
} | |
add_action('init', 'wpc_unregister_job_listing_type'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment