This action hook (found in /wp-admin/edit-tags.php
) will output the button below the table (not quite where you have asked to position it, but it is an easily available action and outside the form
table.)
$taxonomy = 'location'; // you will probably need to change this
add_action('after-{$taxonomy}-table','custom_export_button');
function custom_export_button($taxonomy) {
$export_url = admin_url('admin-ajax.php').'?action=export_taxonomy';
echo "<form action='".$export_url."' method='post'>";
echo "<input type="hidden" name="taxonomy" value="".$taxonomy."">";
echo "<input type="submit" value="EXPORT"></form>";
}
add_action('wp_ajax_export_taxonomy','custom_export_taxonomy');
function custom_export_taxonomy() {
// YOUR CUSTOM TAXONOMY EXPORT FUNCTION
}
Related Posts:
- Hierarchical taxonomy UI
- How can I add buttons to a custom column in the taxonomy table?
- ‘wp’ action hook not firing in admin and login?
- Unexpected results from get_taxonomies() and {$taxonomy}_edit_form and related hook
- put custom taxonomy slug in front of their respective term slugs
- Is it safe to register a taxonomy without using any hooks?
- What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?
- How to Modify Default Text in a Custom Taxonomy Admin Panel?
- Reverse order of posts in a certain taxonomy archive?
- Display taxonomy with a maximum number of letters
- Is there a way to change select-list for new custom taxonomy?
- use apply_filters return taxonomies custom post type
- deleted_$taxonomy not getting fired
- How can I get the term_id from the action hook ‘set_object_terms’?
- Hook to filter based on form value and insert term
- Hook function when taxonomy terms change
- Exclude Specific Term from Search
- Can I lock down custom taxonomies on a parent term level, but not a child term?
- Including all terms in wordpress tax_query
- How to add a button to custom post type’s posts-page
- term_description help
- register_rest_field for custom taxonomy fields that are assosiated with custom post type
- How to remove parent taxonomy name from the title generated by wp_title()?
- Group posts that matches a term in a loop
- Custom taxonomy template loop
- Adding session variable and/or cookie based on user-selected input
- How to Reverse Taxonomy Order
- get_terms custom order
- Check whether a custom taxonomy term has published posts?
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- How to add rewrite rules and pagination to retrieve attachments files?
- How to Query Database for posts with certain Taxonomy Term
- Check if term is in a taxonomy?
- Display direct children of the current custom taxonomy in taxonomy.php template
- How to show only terms by id or slug on edit-tags.php (custom taxonomy manage page) for a custom taxonomy
- Woocommerce: How to change the add to cart text in a certain category? [closed]
- get_term and get_term_by return null or false, even though term exists
- Can you filter wp_dropdown_categories with terms meta?
- one term two taxonomy’s?
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- quey posts from different categories with taxonomy
- How to create pagination for custom taxonomy in WordPress
- Order by taxonomy Value [duplicate]
- Checkbox onclick filtering on the same page
- Get parent and children taxonomy in different dropbox
- Category list with indent children list below current category
- Some of my custom taxonomies are not showing but still counted in a WPMU set up
- Remove categories from post edit page, but keep in sidebar?
- How to set taxonomy hierarchical level to 2?
- Custom Taxonomy Not Working When added to WordPress Search
- Custom taxonomy terms in the admin site is not saving for widget
- Widget dropdown always displays first option
- Using custom taxonomies to display hierarchical URLs?
- Passing form inputs into multi-taxonomy query
- Custom Taxonomy Tag Cloud?
- Make child taxonomy categories use a set template
- Copy/clone/associate Custom field to Custom Taxonomy
- Query posts using custom taxonomy and selected terms
- Foreach loop duplicating a taxonomy thumbnail image
- Load a certain functions file for a certain taxonomy
- one post per term taxonomy
- How do I get the labels from a post
- Hide custom taxonomy from easy admin
- Add file attachments/meta to a custom Taxonomy
- Displaying user selected custom tags/taxonomies on the front-end
- Why can’t I access Custom Taxonomy metadata?
- Permalinks with custom taxonomies and regular categories
- WP_Query tax_query – Show results if child has parent X
- Running a function only once when a taxonomy term is changed
- Taxonomy or Custom Field
- making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
- Trash Bin for Categories?
- Custom taxonomy – checking if name includes a declared value
- Wp_insert_term doesn’t work from separate file with custom taxonomy
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- Random order not working correctly when using default loop + $query->set
- Convert post meta to custom taxonomy?
- How to create filter’s for custom taxonomy page
- Query by multiple custom taxonomies
- get the custom taxonomy name?
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Modify title of custom taxonomy archive page
- Catchable fatal error: Object of class WP_Error
- WordPress custom taxonomies new/edit post autocomplete
- custom taxonomy not displaying
- Query Number of Loaded Posts in Loop
- Register custom taxonomy from a Advenced custom field option page
- WordPress doesn’t respect the template hierarchy?
- register and insert category manually
- List of taxonomy archive index page links
- Multiple category lists on one page
- New rewrite rules for custom taxonomy and reuse default
- How to associate string with individual use of taxonomy term
- Primary Taxonomy for Post
- Polylang non translatable custom taxonomy
- Trying to list custom categories in custom post type [closed]
- get_the_terms inside save_post gives old terms
- Loop posts without any taxonomy
- Modify Term List in Custom Taxonomy Meta Box
- Creating a custom archive page for WooCommerce products based on tags