Skip to content

Exporting Users From WordPress

This task will export users from WordPress in an XML format. The results can be filtered if required. See below for a sample output file.

Settings

Connection

Required
The WordPress connection to use when running the Export Users task.

Export All

Required
Set to true to export all pages, or false to only export those published since the date specified in the 'Export From' setting.

Export Detailed

Required
This setting has no effect on the Export Users task.

Page Size

Required
The number of records to include in each page of results. Defaults to 10. Increasing this value will increase the speed of the export, but will consume more memory.

Optional
Enter search keywords to filter the results returned.

Timeout

Optional
The maximum time, in seconds, to wait for a response from WordPress. Leave blank to use the default timeout of 100 seconds.

Output File

Required
The file to save results from the Export Users task. The results are returned as an array of the User object as detailed in the example below.

Zynk Settings

See Common Task Settings

Examples

A sample output file is shown below.

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfUser xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <User>
    <id>1</id>
    <external_id>12345</external_id>
    <name>admin</name>
    <url />
    <description />
    <link>https://localhost/wordpress/author/admin/</link>
    <slug>admin</slug>
    <registered_date xsi:nil="true" />
    <avatar_urls>
      <item>
        <key>24</key>
        <value>https://secure.gravatar.com/avatar/02f0389f39fb5b37a548110c961725a1?s=24&amp;d=mm&amp;r=g</value>
      </item>
      <item>
        <key>48</key>
        <value>https://secure.gravatar.com/avatar/02f0389f39fb5b37a548110c961725a1?s=48&amp;d=mm&amp;r=g</value>
      </item>
      <item>
        <key>96</key>
        <value>https://secure.gravatar.com/avatar/02f0389f39fb5b37a548110c961725a1?s=96&amp;d=mm&amp;r=g</value>
      </item>
    </avatar_urls>
  </User>
</ArrayOfUser>