Skip to content

Instantly share code, notes, and snippets.

@wpchannel
Last active February 18, 2018 19:07
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 wpchannel/460c1520769eabf94bf4215a599ed483 to your computer and use it in GitHub Desktop.
Save wpchannel/460c1520769eabf94bf4215a599ed483 to your computer and use it in GitHub Desktop.
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