-
-
Save cre8tivediva/f43d54311483d3bc5cb70b3dc70cc687 to your computer and use it in GitHub Desktop.
Genesis Blocks Pro - Remove Portfolio Items Post Type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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