Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
Created August 5, 2021 20:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cre8tivediva/f43d54311483d3bc5cb70b3dc70cc687 to your computer and use it in GitHub Desktop.
Save cre8tivediva/f43d54311483d3bc5cb70b3dc70cc687 to your computer and use it in GitHub Desktop.
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