WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using wp 3.5 i have a custom post (sp_product) and also i have custom taxonomy. I want to remove that custom taxonomy filter column but i don't want to make 'show_admin_column' => false.

I wanna unset from $columns[''] .

How should i do that ? i also want to add some css/js when it will show in column and top select menu. (showing in this image like)

share|improve this question
up vote 0 down vote accepted
function wpse_80027_manage_columns($columns) {
    // remove taxonomy column
    // add your custom column
    $columns['CUSTOM_COLUMN_NAME'] = __('Column Name');
    return $columns;
add_filter('manage_edit-sp_product_columns', 'wpse_80027_manage_columns');

function wpse_80027_add_img_column($name) {
    if('CUSTOM_COLUMN_NAME' == $name) {
        // echo your image in 'CUSTOM_COLUMN_NAME' column
        echo '<img src="image-name.png />';
add_action('manage_sp_product_posts_custom_column', 'wpse_80027_add_img_column');
share|improve this answer
Its working, thank u so much :) – zxprince Jan 11 '13 at 3:55
add_action( 'init', 'unregister_taxonomy');
function unregister_taxonomy(){
    global $wp_taxonomies;
    $taxonomy = 'taxonomy_to_remove';
    if ( taxonomy_exists( $taxonomy))
        unset( $wp_taxonomies[$taxonomy]);

function remove_taxonomy($taxonomy) {
    if (!$taxonomy->_builtin) {
        global $wp_taxonomies;
        $terms = get_terms($taxonomy); 
        foreach ($terms as $term) {
            wp_delete_term( $term->term_id, $taxonomy );

function deactivate_custom_taxes() {
    remove_taxonomy('post_tag');  // this will fail silently
    // do we need to flush the rewrite rules? 

register_deactivation_hook( __FILE__, 'deactivate_custom_taxes' );

Please check this and let me know ....

share|improve this answer
sorry to say i can't understand you answer . But i find its solution. and also thank you too. – zxprince Jan 11 '13 at 3:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.