Folder
in package
implements
IOverrideFolder
Uses
UtilsProvider, Folder
Enables the /folders REST for all creatable items.
Table of Contents
Interfaces
Methods
- applyContentSortables() : WP_REST_Response|WP_Error
- See API docs.
- applyFolderSortables() : WP_REST_Response|WP_Error
- See API docs.
- createItem() : mixed
- deleteItem() : WP_REST_Response|WP_Error
- See API docs.
- getContentCounts() : WP_REST_Response|WP_Error
- See API docs.
- getMetaHTML() : 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.
- permission_callback() : mixed
- Check if user is allowed to call this service requests.
- rest_api_init() : mixed
- Register endpoints.
- updateItem() : WP_REST_Response|WP_Error
- See API docs.
- updateMeta() : WP_REST_Response|WP_Error
- See API docs.
Methods
applyContentSortables()
See API docs.
public
applyContentSortables(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorapplyFolderSortables()
See API docs.
public
applyFolderSortables(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorcreateItem()
public
createItem(mixed $request) : mixed
Parameters
- $request : mixed
deleteItem()
See API docs.
public
deleteItem(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorgetContentCounts()
See API docs.
public
getContentCounts(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorgetMetaHTML()
See API docs.
public
getMetaHTML(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
stringpermission_callback()
Check if user is allowed to call this service requests.
public
permission_callback() : mixed
rest_api_init()
Register endpoints.
public
rest_api_init() : mixed
updateItem()
See API docs.
public
updateItem(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_ErrorupdateMeta()
See API docs.
public
updateMeta(WP_REST_Request $request) : WP_REST_Response|WP_Error
APIYes
Parameters
- $request : WP_REST_Request