\MatthiasWeb\RealMediaLibrary\restReset

Enables the /reset, /import and /export REST for admins (manage_options).

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
rest_api_init()
permission_callback()
permission_callback_install_plugins()
resetOrder()
resetCount()
resetSlugs()
resetRelations()
resetFolders()
export()
import()
importTaxonomy()
importMlf()
importFileBird()
routeNoticeDismissLicense()
routeNoticeDismissLite()
routeNoticeDismissImportTax()
resetDebug()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

rest_api_init()

rest_api_init()

Register endpoints.

permission_callback()

permission_callback()

Check if user is allowed to call this service requests.

permission_callback_install_plugins()

permission_callback_install_plugins()

Check if user is allowed to call this service requests.

resetOrder()

resetOrder(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

resetCount()

resetCount(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

resetSlugs()

resetSlugs(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

resetRelations()

resetRelations(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

resetFolders()

resetFolders(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

export()

export(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

import()

import(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

importTaxonomy()

importTaxonomy(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

importMlf()

importMlf(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

importFileBird()

importFileBird(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

routeNoticeDismissLicense()

routeNoticeDismissLicense(): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

routeNoticeDismissLite()

routeNoticeDismissLite(): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

routeNoticeDismissImportTax()

routeNoticeDismissImportTax(): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

resetDebug()

resetDebug(\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request  $request): \WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error

See API docs.

Parameters

\MatthiasWeb\RealMediaLibrary\rest\WP_REST_Request $request

Returns

\WP_REST_Response|\MatthiasWeb\RealMediaLibrary\rest\WP_Error