Documentation

ExportMediaLibrary
in package
Uses UtilsProvider

This class handles the compatibility for this plugin: https://wordpress.org/plugins/export-media-library/

Tags
see
https://github.com/massedge/wordpress-plugin-export-media-library/issues/9
since
4.5.0

Table of Contents

Constants

AJAX_ACTION  = 'massedge-wp-plugin-eml-ape-rml-download'

Methods

__construct()  : mixed
C'tor.
export()  : WP_REST_Response|WP_Error
See API docs.
getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
localize()  : array<string|int, mixed>
Add a localized nonce to the rmlOpts variable for AJAX interaction (admin-ajax.php).
permission_callback()  : mixed
Check if user is allowed to call this service requests.
rest_api_init()  : mixed
Register REST API endpoints.

Constants

AJAX_ACTION

public mixed AJAX_ACTION = 'massedge-wp-plugin-eml-ape-rml-download'

Methods

export()

See API docs.

public export(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
$request : WP_REST_Request
Tags
apiHeader

{string} X-WP-Nonce

apiName

GetExportFolder

apiParam

{string='wosFlat','wosHierarchical','wsFlat','wsHierarchicalRML','wsHierarchical'} type The export type

apiParam

{int} folder The folder id

apiGroup

ThirdParty

apiVersion

1.0.0

apiPermission

upload_media

Return values
WP_REST_Response|WP_Error

getPluginConstantPrefix()

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

localize()

Add a localized nonce to the rmlOpts variable for AJAX interaction (admin-ajax.php).

public localize(array<string|int, mixed> $arr) : array<string|int, mixed>
Parameters
$arr : array<string|int, mixed>
Return values
array<string|int, mixed>

permission_callback()

Check if user is allowed to call this service requests.

public permission_callback() : mixed

        
On this page

Search results