Skip to content

Instantly share code, notes, and snippets.

Created Aug 5, 2021
What would you like to do?
Genesis Blocks Pro - Remove Portfolio Items Post Type
// 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