Created
November 25, 2025 16:08
-
-
Save New0/f2c52eda9bfe7571c6ddad839f2bcf22 to your computer and use it in GitHub Desktop.
Ninja Forms add-on. Enables MCP public access for Ninja Forms abilities that are restricted by default
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: Ninja Forms MCP Enabler | |
| * Description: Enables MCP public access for Ninja Forms abilities that are restricted by default | |
| * Version: 3.0.0 | |
| * Author: New0 | |
| */ | |
| // Prevent direct access | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } | |
| // Enable MCP public access for abilities that default to false (restricted operations) | |
| add_filter( 'ninjaforms_mcp_public_delete_form', '__return_true' ); | |
| add_filter( 'ninjaforms_mcp_public_delete_submission', '__return_true' ); | |
| add_filter( 'ninjaforms_mcp_public_update_submission', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment