You’d have to use the $_GET
method. Here, I’m hooking in admin_head-{$pagenow}
, depending on your functionality maybe you’ll need to hook in load-{$pagenow}
.
Prefix your var names to not colide with any WordPress internals, in this case my-update
for the action name:
edit.php?post_type=league&action=my-update&post_id
Sample code:
add_action( 'admin_head-edit.php', 'custom_get_http_wpse_82761' );
function custom_get_http_wpse_82761()
{
global $typenow;
if( 'league' != $typenow )
return;
if( isset( $_GET['my-update'] ) )
{
// do stuff
}
}
Related Posts:
- How to remove “read more” link from custom post type excerpt
- How to get the posts of a custom taxonomy term
- Can you make a custom metabox field be required to save a new post?
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- Best Way to Create a List of Musician Gigs in WordPress
- Custom Post Type menu name
- Get Custom post with ID
- Adding %author% in custom post type URL structure?
- Syntax to get the Nth item in a list of custom post types?
- Filter by custom Field for Custom post type Admin Listing
- feed links for custom post type pages
- How to create notification on frontend using heartbeat api for multiple custom post types
- Make a select list of a custom post type in a meta box
- Removing Image Sizes for Custom Post Type
- Posts per Page on custom Taxonomy Template
- How to programatically set the post title of a CPT on wp-admin
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- Permalink Structure problem with cpt and custom taxonomy
- Auto Draft Specific Categories Posts after a certain number of Days
- Custom Taxonomy 404
- Calculate Repeater Meta Box Input Field Values and Display Total
- Parent drop-down not appearing for custom post type
- get_terms won’t display product_cat or any other custom taxonomies when specified
- Custom Post Type: Linking Terms to show Count
- single-{post_type}.php is not loaded despite flushing rules
- Show Custom Post Type values in WordPress grid view
- WordPress tax_input only if logged in
- How to sync tags between posts that are linked through Posts 2 Posts?
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- CPT in Posts tab instead of its own tab
- Custom Post Types and archives
- Why my custom post posts aren’t showing (404 error / page not found)
- Combining custom post type and post category
- Loop that displays the first post of every available custom post type?
- How do I prefix blog post urls as mysite.com/blog/%postname%/ but allow authors to still be located at mysite.com/authors/%nicename%?
- get_template_part() – post-meta not working?
- Change headers in admin posts list
- Custom post type, permalinks & pagination, going wrong
- get_the_terms return only last term
- Query custom post type only if it contains another custom post type
- How to change post featured image using a custom field of category?
- Access $post object when adding custom columns to list table
- Show category ID on custom post type
- Isotope Filtering with Bootstrap Tabs – Custom Post Type Query Loop in each Tab (Have to click twice to filter)
- Child post with numeric only slug keeps redirecting to parent
- Setting up taxonomy to relate various custom post types – advice on structuring?
- Should wp_postmeta meta_key always be unique for a given post_id?
- creat filter with wp_query
- What is the best practice for displaying my plugin content in themes?
- Custom post type and category link together
- Get terms that contain posts that in turn belong to other terms?
- Custom post type posts don’t show in archive widget
- WordPress API for custom post types returns rest_no_route
- Multiple Custom Post Type queries, how to DRY it up
- post_per_page ignored in WP_Query
- WordPress app page not found error for posts with hyphen in permalink
- Custom post type and standard post not displaying or working
- Check if custom post is a parent?
- Get all post from a post type
- A faster way to query custom post types with multiple conditions?
- Create a select metabox that the user can pupolate?
- Display custom meta on page that has been check in custom post type
- $wpdb is queried but results don’t show
- How to query custom post types with multiple keys?
- Redirect Existing Post to CPT
- Grouping custom wordpress post types by acf value
- Get_post_custom not fetching value from array wordpress
- Is it possible to add the Gutenberg block editor to a custom taxonomy?
- What is the best way to structure posts for the same event happening in different years?
- Creating a custom post type upon registration for a specific user role
- WordPress Post ID overwritten when I create a new post?
- Show parent category and subcategory once in while loop
- I cannot display custom posts in custom taxonomy
- Publish metabox postition?
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- Allow duplicate permalinks slugs for custom posts by different authors
- How to check if a new private custom post type is created?
- Custom taxonomy with custom post type template not showing
- Loop to display parent categories in custom taxonomy
- One-Time Script TimeOut for Large Data
- How can you use a page for a custom post type?
- Pagination functions won’t work
- Collect custom post in a calendar
- CPT Efficient way to display posts from different categories with custom query
- Extensive search filtering and results->PDF in the front-end
- Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values
- Posts without featured image using other post’s featured image
- How to add a custom post type in child theme? (WordPress > 3.0)
- Displaying wp post categories into my custom metabox
- Advanced search form with filters for custom taxonomies and custom fields
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- current_page_item and custom post type?
- Issues on saving data from CPT select metabox
- How can I get user URL by id
- How to display custom message for (Genesis) featured posts if no posts
- One set of categories for multiple custom posts
- sidebar hierarchical menu category & custom post type
- CPT Archive Pagination – Page not found
- Add post id to url instead of WordPress default -2 suffix
- How to consume external API from WordPress post editor and display the response data in the custom field?