I’ve managed to do it, but probably there is a much cleaner WP way of doing these things.
So, I have a menu page that I’ve added using add_menu_page. On it, I display all the records. The url is:
/wp-admin/admin.php?page=plugin-settings (or whatever you call it)
I use:
<a href="https://wordpress.stackexchange.com/questions/218076/<?php echo bloginfo("url');?>/wp-admin/admin.php?page=utm-user-plugin-settings&id=<?php echo $row->id; ?>">Edit</a>
So basically, I ended up using the same page for my EDIT action by checking if $_GET[“id”] is set or not.
Again, there is probably a better way to do this, I just don’t know it yet, so this will do for now.
Related Posts:
- Passing arguments to a admin menu page callback?
- Admin settings update updating every time home page is hit?
- What’s the best method for emptying an option created with the Settings API?
- What is the recommended way to create plugin administration forms?
- How to add a new plugin page under desired Options page?
- Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?
- Overwriting Core WordPress Functions with Plugins
- Naming Admin Menus and Submenus
- Current class on admin menu using add_submenu_page()
- Add Admin Menu Inside Construct or Init
- Hook event for upload image in the menu
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- add_menu_page() with function inside a class [duplicate]
- How to add Font Awesome 5 icons in WP Admin dashboard menu?
- How to put placeholder text in the main post input area?
- Unified Approach for Placing Option Pages
- Plugin with specific admin menu icon
- OOP Plugin and Menu – Call to undefined function register_setting()
- Global State During an Admin Post
- Howto: Use Custom Post Types as Submenu Items in Admin
- Sub Menu content is being duplicated
- Set different custom menu items for different user roles
- Show/Hide ‘add new user’ custom fields in wordpress admin panel by click another field
- Bootstrap doesn’t work on admin menu page-How to override wp-admin style?
- is it recommended to use WP_List_Table?
- Plugin sub-menu pages recommended structure and links
- Creating Admin Plugin – Content of a page is displayed at global scope as well
- Add a page in admin without adding menu item
- Silently register plugin pages
- WordPress theme options Menu
- Print Dashboard submenu name and filename
- I am trying to make a page in the admin section similar to the appearance of the Profile page for users
- Unable to get a simple plugin admin page to work
- Disable Auto-Expanding Menu in WordPress Admin Menus
- in_array function Problem
- Use options to control jQuery plugin
- Restrict certain actions to plugin-specific admin menu pages only
- Proper way to create an administration page without adding it to the menu
- Pause plugin option page until all data manipulation is complete
- How to add text editor in plugin menu?
- How to make an admin plugin menu page go full screen?
- How to add admin.php to WP Admin Menu Link
- Convert each new line in the textfield as a new value in an array
- How put the correct URL to sub-menu plugin?
- Add a description/hint field in the admin page of a plugin
- Forcing ALL plugin Admin menus into a separate menu
- Link to a admin submenu item using a custom link
- Plugin admin list pages as submenu
- Change Admin menu placement using hooks
- Menu_slug used for creating options page
- How to design WooCommerce-like admin tabs for plugin settings page?
- Show Admin Menu
- Looking for WordPress System Diagrams
- How to output message during plugin activation
- How to provide translations for a WordPress TinyMCE plugin?
- Where do I start from
- Check the Version of an Enqueue’d External Library
- Change of query var in pre_get_posts not maintained
- How to Parse an Array of Elements in Gutenberg Block
- Custom rewrite rule serves content, but returns 404 error code
- Will changing the ‘Plugin Name’ header in the next update of a plugin break anything?
- Performance of several get_option() calls
- How to edit mySQL wp_posts table from plugin php?
- Creating a Wordpess Plugin that writes data to a csv file. The data doesn’t show in the csv file?
- Problem with is_active_sidebar?
- Prevent Plugin from loading on ‘wp-admin / wp-login’
- Widget update function not saving values
- override pluggable.php functions
- get_the_excerpt() is not returning an empty string when the_excerpt is blank?
- “Plugin could not be activated because it triggered a fatal error.”
- Does the order of sections in readme.txt matter?
- Add column in WP user but it goes wrong
- How to remove the current post from the query?
- Is file_get_contents() the only way for plugins reading local files OR does WP_Filesystem_Direct::get_contents() even work?
- how to get up row in wordpress with wpdb
- Hook into Jetpacks Publicize without using a post type
- How to remove default style of header in wordpress metabox
- Checking a WordPress for OWASP top 10 vulnerabilities [closed]
- hook filter after the_content on a specific page
- The Correct Way to Use Nonce Field without Settings API
- how to save checkbox data for custom setting?
- Run command “composer install” when activating wordpress plugin
- Import user data using CSV
- How to submit/upload data to database and in specific folder?
- OOP plugin not working
- Plugin Options not saving options and doesn’t work
- JQuery Slider – Similar to www.internetmarketinginc.com [closed]
- Development plugin to view and manage scheduled wordpress cron jobs?
- Add user managable titles to custom menus?
- WordPress video js error this.mediaElement.play is not a function
- Custom Icon for Plugin
- WP_Query order posts by category
- Implications of creating a plugin that adds functionality to other developer’s plugin?
- First page download plugin
- why is update_user_meta creating arrays when trying to change the same value?
- How to avoid conflict if a plugin already have included open library?
- WordPress OOP get current user question?
- Override WooCommerce files from plugin
- Unable to link CSS file
- Is there a way to make is_search() always return false