unregister_taxonomy_for_object_type example

remove_action( 'add_meta_boxes_' . $this->name, $this->register_meta_box_cb, 10 );
        }
    }

    /** * Removes the post type from all taxonomies. * * @since 4.6.0 */
    public function unregister_taxonomies() {
        foreach ( get_object_taxonomies( $this->name ) as $taxonomy ) {
            unregister_taxonomy_for_object_type( $taxonomy$this->name );
        }
    }

    /** * Removes the future post hook action for the post type. * * @since 4.6.0 */
    public function remove_hooks() {
        remove_action( 'future_' . $this->name, '_future_post_hook', 5 );
    }

    
Home | Imprint | This part of the site doesn't use cookies.