Media_Library implements Registerable, Standard_Service
Handles the Media Library bulk action
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- add_bulk_action() : array<string|int, mixed>
- Add the bulk action for importing
- add_list_view_document_download_dropdown() : mixed
- Adds the Document Download filter dropdown to the Media Library list view.
- admin_notices() : mixed
- Add admin notices for the outcome of the bulk import
- handle_bulk_action() : string
- Handle the importing for the bulk action
- register() : mixed
- {@inheritdoc}
Methods
add_bulk_action()
Add the bulk action for importing
public
add_bulk_action(array<string|int, mixed> $bulk_actions) : array<string|int, mixed>
Parameters
- $bulk_actions : array<string|int, mixed>
Return values
array<string|int, mixed> —$bulk_actions
add_list_view_document_download_dropdown()
Adds the Document Download filter dropdown to the Media Library list view.
public
add_list_view_document_download_dropdown(string $post_type) : mixed
Parameters
- $post_type : string
Return values
mixed —admin_notices()
Add admin notices for the outcome of the bulk import
public
admin_notices() : mixed
Return values
mixed —handle_bulk_action()
Handle the importing for the bulk action
public
handle_bulk_action(string $redirect, string $action, array<string|int, mixed> $object_ids) : string
Parameters
- $redirect : string
- $action : string
- $object_ids : array<string|int, mixed>
Return values
string —$redirect
register()
{@inheritdoc}
public
register() : mixed