Created
February 28, 2025 01:11
-
-
Save n7studios/786eea65394ba1ff3283d2d3085f93f5 to your computer and use it in GitHub Desktop.
Kit: Exclude Forms on Post Type
This file contains hidden or 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 | |
/** | |
* Plugin Name: Kit: Exclude Post Type from Forms | |
* Version: 0.0.1 | |
* Author: Kit | |
* Description: Exclude a Post Type from having Forms appended | |
*/ | |
add_action( 'convertkit_get_supported_post_types', function( $post_types ) { | |
$exclude_post_type = 'feast_layouts'; | |
if ( ( $key = array_search( $exclude_post_type, $post_types) ) !== false ) { | |
unset( $post_types[ $key ] ); | |
} | |
return $post_types; | |
}, 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment