I’ll preface this by saying I think it’s a really bad idea, but you could circumvent the admin UI by hooking an action that happens after things are initialized, but before any output occurs:
function my_admin_ui(){
if( isset( $_GET['page'] )
&& 'myPlugin-ui' == $_GET['page'] ){
include( plugin_dir_path( __FILE__ ) . 'views/myPlugin-ui.php' );
exit;
}
}
add_action( 'admin_init', 'my_admin_ui', 999 );
Related Posts:
- My ajax request don´t work and return 0
- WordPress environment not loading properly
- Customizing subject in comment notification e-mails
- How to Loop Plugin Option Field Set?
- How to pass JavaScript variable to PHP in wordpress widget?
- Saving Plugin settings to the database
- Execute a function using ajax
- Errors while using ajax from external wordpress page
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- HELP: Integrating WP with raw PHP code once published button is hit
- I would like to use create a function in my custom plugin to tell WP to use a different header
- Scope for PHP Variables Assigned in functions.php or a plugin
- WooCommerce get_price returning wrong price when used via ajax
- Shortcode button dosent work for all posts. Work for first post only
- wordpress plugin is not activating from widget
- Edit Yoast SEO breadcrumbs output [closed]
- Using a custom plugin to capture input data via Ajax and PHP
- Ajax call returning 0
- Conditional attributes and logic per product category
- WordPress get_avatar function not correct working
- Redirect to another page using contact form 7? [closed]
- Check if variable is set in filter
- execute function after one completed
- How to get specific string/value from an array? php [closed]
- Plugin onclick button activate other plugin
- Asynchronous request in wordpress
- Different registration form for different roles
- More gentle way to hook WordPress custom url
- How to add custom function to pluggable.php
- can’t unzip file
- Checkbox show / hide output result
- Allow a particular user to access a particular plugin?
- Cookie value changes back to previous value after changing
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- adding dynamic/multiple slug values in ‘option_none_value’
- working code, not working – Plugin Dev
- How to use Datatable with Ajax when creating plugin on WordPress?
- Is admin section completely customizable in terms of styling?
- Compare Ajax Data Results
- register_activation_hook doesn’t fire at all
- Populate select option with JSON file
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- Saving an array to get_options
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- How to get site homepage from plugin?
- How to add a handler for a button in plugin?
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Doing action based on input from options menu
- Help me with my first very basic plugin
- How use Dynamic hyperlink on each wordpress post?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- WP showing “warning: call_user_func_array()”, What to do?
- How can I pass a variable to wp_ajax action?
- Use functionality of 2 wordpress plugins
- How can i change an image’s author?
- jQuery Plugin to use WordPress functions in AJAX request
- Plugin exceeds memory limit
- How can I get WordPress to save comments in markdown format?
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- Redirection of users away from wp-admin (but not administrators)
- code is working properly in Core PHP but writing coding in WordPress
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- All sites themes functions.php have been changed
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- Perform internal redirect in WordPress?
- How to prevent plugins from loading jQuery
- Duplicate results are displayed in a custom plugin [closed]
- Using data sent via AJAX in multiple functions on a WP plugin
- WordPress front end AJAX. Return 0 :?
- Help with WP Business Directory Manager Plugin?
- How to redirect to same page after form submission
- get specific value of a array | PHP
- I receive taxonomy id
- Loop in elementor custom widget not working
- Make plugin php file called directly aware of WordPress?
- How to access OOP plugin function inside themes or other plugin
- Execute Jquery when a specific page in my plugin is loading
- Apply html elements in php statement
- WordPress Post HTML after Posting
- Settings options not showing up on Sub Menu page in WordPress plugin
- The Build menu theme is frozen with the wordpress theme
- How can I translate something in my class constructor of my plugin in WordPress?
- Define global variable in theme file and call that variable in plugin file
- Adding discount functionality to the cart
- Get Shortcode output to database for static post_content
- SimpleXML is not working with xml response from external api
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Change Woo Custom Endpoint Titles from a Plugin
- plugin not hooking to my custom hook
- Find all strings between an enclosing shortcode
- Ajax, jQuery and WordPress
- Capturing POST data
- Unable to show 4 products in a row
- WordPress portfolio pagination on home page
- PHP Creating a formula from mysql db values and db stored math operator
- WordPress Convert queries to slashes using function.php
- WordPress Throwing Deprecated Errors on its own Files
- plugin doesn’t retrieve data from database