The function lives in wp-admin/includes/export.php
and is only included on the export admin page (see source).
If you want to use it on other pages, you’ll have to include it manually:
require_once( ABSPATH . 'wp-admin/includes/export.php' );
Related Posts:
- delete uploaded file
- How to add an export function to a custom Option Theme Page
- How to know which ajax file or function is called for action
- Help finishing script to export WP user data when form submitted
- What’s the difference between WordPress random_int() and PHP built-in function random_int()?
- Is it ok to use a function to output the text domain name in a wordpress theme
- Issue with wp_get_attachment_image() and SVG file type
- deregister scripts on certain page
- Changing a function in function.php to a shortcode – for listing categories of only a certain post type
- Using get_terms for custom taxonomy in functions.php
- Formatting post content to exclude gallery
- Theme Demo in live Site
- function to include is_home, is_archive, is_category, is_author etc in one function?
- How to remove canonical url in wordpress? add_filter( ‘wpseo_canonical’, ‘__return_false’ ); not Working for me
- Change a sidebar name?
- Removing title from page
- get_the_excerpt() not returning anything when post has no excerpt
- Why isn’t is_page_template() adding a body class?
- Query children and parent title
- How to make unique add_filter to the_content of specific page template files – so each template gets its own addition
- Creating loop within functions.php
- Limit filter upgrader_post_install to a single plugin
- How to test for Super Admin
- How to use max and min values of custom fields
- creating shortcode to pull json array
- Still relevant method of embedding images in WP Theme in 2018
- Pass Shortcode Attribute to footer Script
- How to use Internationalized human_time_diff() function in Chinese?
- post to subcategory and parent in wp_insert_post
- Replace menu links with # and add name to its li
- Variable if post is sticky in functions.php
- Change template on the fly based on post parent selection
- Execute a ultimate member action when user role is updated
- Create a new query in function.php to filter blog posts
- Use third party Library in wordpress
- Remove the product category module block from the Woocommerce product page
- Creating new blog on multisite programatically without hacks?
- Allowing users to view private posts (pending approval)
- How to get correct URLs in network wide menu (Multisite)?
- Remove category from url
- ‘Attempt to modify property of non-object’ warning
- Conditional functions.php on page template
- Optimizing a WordPress site
- different style sheet for just one page template
- Problem with comments_number()
- How to add custom JavaScript in functions?
- How to target post and pages and not all post types in admin?
- srcset and custom field get_post_meta and wp_get_attachment_url
- hide shortcode using hooks
- Dequeue script to prevent javascript event conflict on wordpress child theme
- Adding code using functions.php in child theme
- Passing global variable from header.php to functions.php
- Extending a custom framework built into WordPress to automatically turn the ‘Search Engine Visibility’ setting ON / OFF, dependant on environment
- Page get parameter doesn’t work with is_single() function
- How is $current_page passed in woocommerce_account_orders function?
- Upgraded server now class My_Walker_Nav_Menu extends Walker_Nav_Menu not working
- Filter to wp_list_authors
- Contact Form 7 If Condition
- How to include any template using Shortcode fuction?
- display a div on ervery site but not frontpage?
- How can I change the size of the text in Word Press
- Using depth=n in wp_list_pages
- shorthand syntax for custom fields
- How do I pull avatar from post using BuddyPress? [closed]
- Replace header image on all other pages but home – URL issue
- Child theme functions.php
- How to echo Widget Title in Custom Frontend-Template Box
- Show admin page, only if function is being used
- Get users with different roles and call function on each of them (user_meta)
- Getting images from media library and get_the_date() not working
- WordPress show bad the php hour and date
- Show errormessages on wrong username/password on custom loginform?
- Using add_image_size in functions.php to get original uploaded file
- show all the posts thumbnails
- How do I change where “You must be logged in to comment” directs users?
- Login cookies blocked after customizing hashing method
- Class parameter in get_avatar args doesn’t get added to output
- Enable CORS Request for hostname using IP address
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- locking content with overlay/pop up ads
- How to use `foreach()` in ajax call
- Change default color scheme in twentyfifteen child theme?
- Restrict access if logged out except for homepage
- Add meta data in head from theme
- DISABLE wordpress upgrade page
- How can I export data without using any import/export plugin
- How to echo the translated custom field?
- How to list out all values from the get_body_class array
- Moving CDN jQuery to footer does not work?
- Mail function not working with user accounts
- Function not recognizing page id?
- Register a widget area when a theme option has been saved?
- Blank child theme – functions.php problem
- Conditionally write open graph meta property in header
- Pull random comment from specific post, display on homepage with shortcode
- Give a function a unique ID
- Hiding Google Analytics code based on theme options
- How do I make my child theme’s CSS update when I save it?
- function to show youtube videos within excerpt – if condition and apply_filters
- sort by date in users