admin_url()
gets you the correct administration page URL (and network_admin_url()
to get a network administration page URL)
Optionally, you can use add_query_arg()
to append arguments to an URL, using an associative array:
$page="edit_record_page";
$rec_id = 1;
$record_url = add_query_arg(compact('page', 'rec_id'), admin_url('admin.php'));
Related Posts:
- Copy Tags from one post type to another post type
- Is there a way to list tags order by post_meta field
- Is there a Filter that I can use to filter the tags before they are inserted in to the database?
- Adding (blog-specific) links to “My Sites” admin page
- Replace default Blogroll Links with Social Media Links
- Is there a plugin that will allow a tag cloud to be created from any mysql field?
- Search the product by tag or category not working
- How to add WordPress Admin “Insert Link” UI (searches through existing posts for URL) and functionality into a custom plugin?
- How to give a download link to a .csv file from the custom plugin?
- Link Pop-up in custom plugin
- get_the_tags with separator control?
- add_action pre_term_description vs. pre_category_description
- Add location tag to wordpress posts
- Determine if term is Category or Tag
- Why would one specify multiple arguments when using get_previous_posts_link() which takes only one parameter?
- Author Meta in Author URL Link
- Remove tag from all posts when publishing new post
- Dynamically getting tags in post edit screen
- Add a new tag based on the category name in the publish event
- Navigate to external link if last page or post in a category
- edit-tags.php in plugin admin menu hides when is the active page
- Access WordPress Tag Function From Modal
- Set link dialog to open in blank by default
- get_the_tags($ID) is empty during publish_post callback
- How to include PHP files in plugins the correct way
- How to validate custom fields in custom post type?
- How to Use Checkbox in Custom Option Page Using The Setting API
- Get List of Registered Meta Boxes and Removing Them
- How should one implement add_settings_error on custom menu pages?
- Can I use the wp media uploader for my own plugin?
- Automatic updates in plugin – not hosted on wordpress repository
- Using a database view = evil incarnate?
- What is the difference between esc_html and wp_filter_nohtml_kses?
- Get post ID from the Create post/page admin interface?
- Explanation of the “posts_join” and “posts_fields” filter hooks?
- WordPress custom authentication implementation
- How to duplicate custom menu settings to export to another site
- WordPress restrict plugin file direct access
- How to check active theme is parent or child wordpress
- Use of global variables within plugin [closed]
- Add Additional File Info (jpeg compression & file size) settings to Edit Images Screen
- Sensible location for IPN Callback script
- What is the use of get_option method
- “You do not have sufficient permissions to access this page” upon accessing my newly created plugin page
- Extend a class plugin
- Retrieve contents/page names of various pages for use in a plugin
- How do I dynamically render an InnerBlock inside a dynamic block?
- Does WordPress run install/uninstall functions on plugin upgrade?
- Slow WP_query due to nested wp_query. Need Suggestions
- How to filter the_content() & include content from template
- Is @wordpress/env locked to node v14 or can I also use node v16?
- ResizableBox with RangeControl not working
- WordPress Custom URL
- Asynchronously render shortcodes in TinyMCE visual editor
- wp_mail() headers multipart/alternative
- WordPress Plugin Activate / Deactive Failing
- How can I add a simple custom field to my plugin?
- Custom Plugin – CSS works, JS doesn’t
- Inserted double quote when prepending to the_content
- unable to wp_enqueue_script(‘suggest’);
- Plugin development – loading Javascript and Flash
- update_post_meta doesnt update template
- Setting global block attribute value
- Plugin custom post template; without overriding all posts
- Run uninstall.php if a checkbox is checked from settings page
- Gravity Forms Anchor only on Front Page?
- Plugin Development: Storing and Manipulating Data That Fits JSON in Database
- How to set a header in wp_safe_remote_get()?
- Multiple page plugin settings
- sanitizing/escaping plugin options
- how to get the top 10 popular blogs
- can’t access some WordPress function from my plugin
- script seem not load with use wp_enqueue_script
- Impossible to declare box-shadow with wp.customize?
- Do I lose translations when I change my Text domain for my plugin on wp.org?
- Get search result count in plugin
- Transform internationalized plugin into internationalized mu-plugin?
- Override woocommerce loop-start.php from theme using plugin?
- Rate limiting ajax requests in WordPress
- How to filter an action inside class in MemberPress plugin?
- XMLHttpRequest to open PHP file responds with Missing Page
- Pre-populated WooCommerce checkout fields: dropdown fields issue
- jQuery dependent script ignores $in_footer bool and doesn’t work in header
- Relational / Associate tables using native WordPress functionality
- how to retrieve post_id under woocommerce_add_to_cart_validation hook?
- WordPress Search Form with Keyword Suggestion
- Pull commentdata for pre_comment_on_post from comment_post_ID
- Get the post ID only off single page
- Bootstrap collapse in custom WordPress widget
- Page reload occurs before request finishes
- PHP Fatal error when using plugin_basename
- How to Rewrite WordPress URL for a Plugin
- append code after the_content not working
- What does $_REQUEST[‘redirect_to’] do?
- how can a plugin return an error message on activation?
- Declaration of mandoe_menu_walker::start_el(&$output, $item, $depth, $args) must be compatible with Walker::start_el(…)
- Reading the inside of
- WordPress, GIT, Renamed Plugin Dir + files – Working Code now Broken [closed]
- Reinitiate Gutenburg’s blocks using javascript
- Generating Multiple Divi Pages from Database