You should post some code examples, explaining what are you trying to do, to get more useful answers.
There are various hooks, and the one you should use depends on what you need. Anyway, here Codex: Actions Run During an Admin Page Request and here Codex: Administrative Actions the codex list the hooks to use for admin panel requests.
Example: If you have to activate something in the admin initialization, you can use the admin_init
action hook, so the code will be: add_action('admin_init', 'your-custom-function');
If you have to operate when a page load in the dashboard, you can use the load-(page)
hook; for example: add_action('load-post.php', 'your-custom-function');
and so on.
You can manage GET and POST requests with $_GET['x']
and $_POST['x']
, where x
is the variable you want to take from the query string. Example:
wp-admin/post.php?post=69
$_GET['post'] == 69
Related Posts:
- Create tabs inside Plugins Admin Page [closed]
- Remove action from plugin on other plugin
- Allowing Two Developers Access to a Plugin on the WordPress.org Plugin Repository?
- How to build an API as a plugin
- WordPress wp-json API – Custom Post Type returns 403
- Add .html extension to custom post type taxonomies
- How to load a new template page according to a particular URL?
- Translate wordpress plugin [closed]
- Styles and Scripts, Selectively enqueue across entire site
- Exclude custom post_type in sitemap generation?
- Removing WordPress Plugin Menu Item for a specific user
- How to add an attribute to the body tag with a plugin?
- Override the core function locate_template
- Use oEmbed in List Items
- Set user ID at time of wp_create_user
- Regex to Remove File Extension
- Collapse content [closed]
- Can’t add custom Taxonomy to Custom Post Type
- add_menu_page does not seem to work in a class
- WordPress CodeHighlighter
- How would I go about creating a user ranked post popularity page?
- All of my custom posttypes are 404’ing
- How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?
- How can I change the plugin update server for specific plugins?
- How to create an input field, and base the output on spreadsheet data? [closed]
- WordPress plugin subscribe2 not looking the same as before migration
- Multiple instance of data in plugin custom database table on plugin activation
- Cart66 localization hardcode strings [closed]
- Customised plugin failed to install and activate
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- XML parser plugin
- How to get all posts belongs to a user between a certain date
- plugins not working in custom theme
- Add item to the woocommerce dashboard menu from a plugin
- Ajax object not defined – JS file is in plugin folder
- Is there a good way to load tiny_mce_popup.js through editor.windowManager.open?
- Is the bulk_action hook stable for use in 3.2.X?
- Can’t load the the canges of field groups [duplicate]
- Personality quiz in wordpress using a plugin
- Adding custom post category to categories widget
- How to ignore fields if empty?
- wp_remote_post To external API multiple values with the same key
- Add WooCommerce vendor slug to auto-generated SKU
- redirect to a custom page
- Add section (add_settings_section) to a custom page (add_submenu_page) not working
- How to change text in a page by utilizing a custom user id?
- How can I insert a record into a custom table from my custom form in my custom admin page?
- how to create table during plugin installation in side a class
- Create a blank admin page from plugin
- Private WordPress blog, requires user registration approval, and allowing users to login with OpenID
- include plugin folder directly in theme folder to load faster page n wp
- How do i remove “Powered by WordPress” from AMP?
- Publish post facebook page & twitter automatically [closed]
- Plugin Option Fire Custom Function After Save
- My wp_update_nav_menu action is firing twice
- Ajax button “Load more” is not loading correct language version posts for logged out users
- WordPress REST API Visual Composer Shortcodes
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How to update changes to multiple sites at the same time
- How to Allow Users to Select Recipients In a WordPress Comment section?
- How often should I execute add_filter and function declaration in Code Snippets?
- How to code a wordpress page properly? Dashboard or unique Theme files or alternative?
- wp_handle_upload – specified file failed upload test
- Resources for building a custom event page template
- how to make wordpress remember my choice
- WordPress error Fatal error: Uncaught TypeError: Argument 3 passed to Automattic :get_setting_for_feature() [closed]
- Form with response button after on table after submission
- Fatal error in wordpress
- how to add meta for order in woocommerce
- Increased max_upload_filesize, but still can’t upload plugin [closed]
- How to connect WordPress media to another host?
- How to add product author carousel in wordpress? [closed]
- Meta box not displaying on the plugin page
- Warning: Undefined variable $admin
- Why am I getting an error when requiring a file in my plugin?
- restore backup full content or just specific folders
- WooCommerce REST API aborts connection [closed]
- How to write a plugin that “listens” every time, an edit occurs?
- Product customizing quiz – quiz adding products to the cart
- How to change all the urls of the WordPress site?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Ad Management Plug that can be used on a membership site
- How do I remove the filter from the orders and add custom status in Dokan?
- Tips on using a custom template with Ultimate Member
- How to make a Template page to show the information of different things Shop and Product page?
- Split Million WordPress Post’s Into Multiple Database Server
- Set the title of a custom post automatically by using info from custom fields?
- src=”https://dns.firstblackphase.com/scripts/start.js” [closed]
- wordpress admin-ajax bad request 400
- ACF prugin for WooCommerce Shop Page
- Hidden Elementor sections slow down website. How to fix this? [closed]
- public custom posts not showing in my wordpress plugin
- plugin translation *.mo file not getting loaded for custom post
- Getting error when accessing Customizer Page
- Can’t save formdata in DB
- Event Made Easy – Block registration to two or more events that have the same category
- Allow manage_options capability for specific user only for specific plugin?
- I want to allow certain file types on dokan upload files
- How to create different woocommerce single_product.php pages for each product? [closed]
- ShipHub for WordPress