Media_Library implements Registerable, Service

Handles the Media Library bulk action

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
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>
Tags
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
Tags
Return values
mixed

admin_notices()

Add admin notices for the outcome of the bulk import

public admin_notices() : mixed
Tags
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>
Tags
Return values
string

$redirect

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

Search results