Created
July 24, 2025 06:26
-
-
Save n7studios/962a3940c55cf773d96a2497e43350f1 to your computer and use it in GitHub Desktop.
Kit WordPress Plugin: Disable `append_form_to_content` on Front Page
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: Disable `append_form_to_content` on Front Page | |
| * Version: 0.0.1 | |
| * Author: Kit | |
| * Description: Disables the `append_form_to_content` on the Front Page | |
| */ | |
| add_action( 'wp', function() { | |
| if ( ! is_front_page() && ! is_home() ) { | |
| return; | |
| } | |
| remove_filter( 'the_content', array( WP_ConvertKit()->get_class( 'output' ), 'append_form_to_content' ) ); | |
| }, 9999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment