Don’t use PHP file names, fake or real, as your admin page slug. Use something like: “my-plugin-name-settings” A lot of old examples use __FILE__ — don’t. If you’re passing in a function callback, you can just use any string as the slug.
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘How can I execute php scripts in my plugin folder?’ is closed to new replies.