Skip to content

Instantly share code, notes, and snippets.

@New0
Created November 25, 2025 16:08
Show Gist options
  • Select an option

  • Save New0/f2c52eda9bfe7571c6ddad839f2bcf22 to your computer and use it in GitHub Desktop.

Select an option

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
<?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