It should work (and does when I test on a new WP install) with __FILE__, though it’s not recommended because it exposes the server path and is just generally an ugly URL. You can replace it with a unique identifier like ‘sb-generator-options’ or whatever really, as long as it’s unique. the important part is the last param that tells it what function to use to render the page.
Are you maybe moving add_submenu_page out of the plugin file, or are you just editing it in place?
Related Posts:
- How to make plugin required in a wp theme without using php conditional statements when calling an individual function from that plugin?
- how to get path to images in the uploads folder to be used in a plugin
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- Making my plugin multi-site compatible
- How Can I Securely Implement a Password-less Login Feature?
- Syntax highlighting for post/page editor [closed]
- run silex or slim with wordpress
- Replacing Icons in the Dashboard
- Where are plugins located
- Checking if an attribute exists in a shortcode
- Ways to have multiple front-page.php templates that can be swapped out?
- How to track hits of a single media file?
- How to create a WordPress plugin for another wordpress plugin?
- Admin menu as submenu from another plugin
- How Is Network Activate Different From Activate (by Implementation)?
- How to enable edit button in the theme’s customize UI?
- Shortcode output appears before post body [duplicate]
- Delete Post With No Traffic?
- A Way to Auto update plugins using cron?
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- use WordPress theme / plugin editor in my plugin
- How to solve a conflict between a plugin and a theme?
- WP Config for FTP credentials
- How to add a sub menu with AJAX?
- WordPress adding tags into plugin content
- WP plugin management
- What’s the recommended process for organising collaborative posting?
- Is there a plugin that pushes posts to your Google+ profile?
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- Get userdata inside custom build plugin
- Leverage browser caching not working after updating .htaccess
- How to attach Links into page/post or custom post type?
- Multi step form, custom plugin
- How do I prevent Plugin updates from clobbering user edits?
- Contact Form 7 plugin refreshing page on submit [closed]
- Some Plugin Settings Are Kept After Removal and Reinstall of the Plugin
- How to use different short description in shop page and in product page in woocommerce
- How do I customize my WordPress shortlink structure in link-template.php without a plugin?
- A reliable AdSense plugin. Does it exist? [closed]
- Is it possible to upload a template file to a directory that can be used by all themes?
- WordPress hook for visiting a post
- why does the add_action(‘the_content’) overwrite my page
- Fatal error: Class not found in
- Converting a simple plugin to be placed inside of functions.php
- How to delete terms on plugin deactivate?
- Showing Notifications While Activating Plugin
- Workflow and best practice for documentation [closed]
- Custom routing for plugins
- Creating a modal dialog without jQuery
- Error Message from W3 Total Cache when .htaccess Rules Cannot Be Modified? [closed]
- Is it ok to call get_option without hooks?
- Send emails with wp_mail() using SMTP configured in plugin
- Show “Local Pickup” shipping method only for specific Woocommerce product categories [closed]
- register_post_status invisible but searchable
- wp_enqueue_style specifics for overwriting plugin styles
- What user roles should have wp_unique_post_slug_is_bad_flat_slug filter applied?
- How do I create a full-bleed background image on text mouseover? [closed]
- All plugins deactivated due to error
- How can I measure the performance of any WordPress Plugin or Theme?
- Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update
- How can I reuse the WordPress search form for a custom plugin / widget?
- Is it not recommendable to stick with plugins that are no longer supported by the author for production sites?
- greatest() function returns undefined property
- Is there a way to programmatically enable a plugin?
- Can you switch the type of WordPress site you have?
- Override WooCommerce page-specific js in my theme
- Should i delete the posts created by a plugin on uninstall?
- Implement plugins as part of a theme
- WordPress Multisite – get_plugin_data()
- Error handling a plugin with exceptions
- Where should a plugin or widget cache its results?
- Set of plugins to control the Admin UI
- Calling JavaScript file with Custom Plugin
- Convert existing WordPress Site (with several plugins) into Multisite
- Find unused images?
- How to get all plugins and their version numbers from the local files?
- Do We Need to Validate, Sanitize, or Filter Simple Numerical Superglobals (Cookies and Post)?
- How to transfer all user data between wordpress installations?
- Where sales manager of WP-Commerce plugin?
- Custom Field Template seriously messed up in WP 3.1.1
- How can I get WordPress to save comments in markdown format?
- Plugin upgrade issue
- Cannot install plugins on Centos VPS
- more types plugin – display all post of post type on page
- Plugin: WordPress Popular Posts > Possible to include custom post types?
- Integrate BuddyPress & Facebook
- __callStatic method handler passed to add_action causes bug in PHP
- Multiple instances of nivo slider plugin
- New databes tables with – WooCommerce – for developers [closed]
- Interactive filters on wordpress [closed]
- Plugin-generated pages use Not Found or Pages Archive templates?
- How can I copy all users to newly created site on a multisite network in WordPress?
- Remove /product/ from url. I want only category name then product name
- Malicious File Upload [closed]
- Regenerate thumnails does not create any files
- Add padding while generating thumbnail
- Using AJAX to generate front end / viewer end pages
- How to prevent plugins from loading jQuery
- How to remove admin main menu name repetition
- Using TinyMCE in plugin?