Hi @RueNel
Correct I am trying to remove the portfolio post type as my sites don’t either need it or I can create my own, and the code works great for doing that.
<?php
// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to Pro in this file.
// =============================================================================
// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
// 01. Enqueue Parent Stylesheet
// 02. Additional Functions
// =============================================================================
// Enqueue Parent Stylesheet
// =============================================================================
add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
// Additional Functions
// =============================================================================
function delete_post_type() {
unregister_post_type( 'x-portfolio' );
unregister_taxonomy( 'portfolio-tag' );
unregister_taxonomy( 'portfolio-category' );
}
add_action('init','delete_post_type', 9999);
There is nothing else in my child theme’s function file. Also this is in my local environment so unfortunately there is nothing that I can give you access to check out.
I am using:
MAMP PRO v 5.3
PHP 7.2.14
WP 5.2.2
X/PRO 2.5.5
Mac OS 10.13.6
I have tried using various versions of PHP and they all give the notice and ruin the list tables with DEBUG on.