Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
Created Aug 5, 2021
Embed
What would you like to do?
Genesis Blocks Pro - Remove Portfolio Items Post Type
<?php
// Do NOT include the opening php tag.
// Remove Genesis Blocks Pro Portfolio Items CPT from Dashboard from Phil Johnston
function your_custom_prefix_disable_gpb_portfolio_post_type() {
remove_action( 'init', 'Genesis\PageBuilder\Portfolio\register_portfolio_post_type' );
}
add_action( 'init', 'your_custom_prefix_disable_gpb_portfolio_post_type', 9 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment