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