Reset
in package
Uses
UtilsProvider
Enables the /reset, /import and /export REST for admins (manage_options).
Table of Contents
Methods
- 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.
- import() : WP_REST_Response|WP_Error
- See API docs.
- importFileBird() : WP_REST_Response|WP_Error
- See API docs.
- importMlf() : WP_REST_Response|WP_Error
- See API docs.
- importTaxonomy() : WP_REST_Response|WP_Error
- See API docs.
- permission_callback() : mixed
- Check if user is allowed to call this service requests.
- permission_callback_activate_plugins() : mixed
- Check if user is allowed to call this service requests.
- resetCount() : WP_REST_Response|WP_Error
- See API docs.
- resetDebug() : WP_REST_Response|WP_Error
- See API docs.
- resetFolders() : WP_REST_Response|WP_Error
- See API docs.
- resetOrder() : WP_REST_Response|WP_Error
- See API docs.
- resetRelations() : WP_REST_Response|WP_Error
- See API docs.
- resetSlugs() : WP_REST_Response|WP_Error
- See API docs.
- rest_api_init() : mixed
- Register endpoints.
- routeNoticeDismissImportTax() : WP_REST_Response|WP_Error
- See API docs.
- routeNoticeDismissLite() : WP_REST_Response|WP_Error
- See API docs.
Methods
export()
See API docs.
public
export(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorgetPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringimport()
See API docs.
public
import(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorimportFileBird()
See API docs.
public
importFileBird(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorimportMlf()
See API docs.
public
importMlf(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorimportTaxonomy()
See API docs.
public
importTaxonomy(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_Errorpermission_callback()
Check if user is allowed to call this service requests.
public
permission_callback() : mixed
permission_callback_activate_plugins()
Check if user is allowed to call this service requests.
public
permission_callback_activate_plugins() : mixed
resetCount()
See API docs.
public
resetCount(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorresetDebug()
See API docs.
public
resetDebug(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorresetFolders()
See API docs.
public
resetFolders(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorresetOrder()
See API docs.
public
resetOrder(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorresetRelations()
See API docs.
public
resetRelations(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorresetSlugs()
See API docs.
public
resetSlugs(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_Errorrest_api_init()
Register endpoints.
public
rest_api_init() : mixed
routeNoticeDismissImportTax()
See API docs.
public
routeNoticeDismissImportTax() : WP_REST_Response|WP_Error
APIYes
Tags
Return values
WP_REST_Response|WP_ErrorrouteNoticeDismissLite()
See API docs.
public
routeNoticeDismissLite() : WP_REST_Response|WP_Error
APIYes