Class MLA (Media Library Assistant) Thumbnails provides support for Featured IMage generation

package Media Library Assistant
since 2.13

 Methods

Load the plugin's Style Sheet and Javascript files

admin_enqueue_scripts(string $page_hook) : void

since 2.13

Parameters

$page_hook

string

Name of the page being loaded

Initialization function, similar to __construct()

initialize() : void

since 2.13

Begin an MLA_List_Table bulk action

mla_list_table_begin_bulk_action(array $item_content, string $bulk_action) 

Prepare the thumbnail generation options.

since 2.13

Parameters

$item_content

array

NULL, to indicate no handler.

$bulk_action

string

the requested action.

Process an MLA_List_Table custom bulk action

mla_list_table_custom_bulk_action(array $item_content, string $bulk_action, integer $post_id) : object

Creates new items from the "Bulk Translate" list.

since 2.13

Parameters

$item_content

array

NULL, to indicate no handler.

$bulk_action

string

the requested action.

$post_id

integer

the affected attachment.

Returns

objectupdated $item_content. NULL if no handler, otherwise ( 'message' => error or status message(s), 'body' => '' )

End an MLA_List_Table bulk action

mla_list_table_end_bulk_action(array $item_content, string $bulk_action) 

Add the query arguments required for the "Generated Thumbnails" filter.

since 2.13

Parameters

$item_content

array

NULL, to indicate no handler.

$bulk_action

string

the requested action.

Filter the MLA_List_Table bulk actions

mla_list_table_get_bulk_actions(array $actions) : array

Adds the "Thumbnail" action to the Bulk Actions list.

since 2.13

Parameters

$actions

array

An array of bulk actions. Format: 'slug' => 'Label'

Returns

arrayupdated array of actions.

Load the MLA_List_Table dropdown help menu template

mla_list_table_help_template(array $template_array, string $file_name, string $file_suffix) 

Add the thumbnail generation options documentation.

since 2.13

Parameters

$template_array

array

NULL, to indicate no replacement template.

$file_name

string

the complete name of the default template file.

$file_suffix

string

the $screen->id or hook suffix part of the template file name.

MLA_List_Table inline edit parse

mla_list_table_inline_parse(string $html_markup, string $item_template, array $item_values) : array

since 2.13 Adds Bulk Translate form and the Language dropdown markup used for the Quick and Bulk Edit forms.

Parameters

$html_markup

string

HTML markup returned by the template parser

$item_template

string

template used to generate the HTML markup

$item_values

array

parameter_name => parameter_value pairs

Returns

arrayupdated HTML markup for the Quick and Bulk Edit forms

Filter the "sticky" submenu URL parameters

mla_list_table_submenu_arguments(array $submenu_arguments, object $include_filters) : array

Maintains the pll_view and list of Bulk Translate items in the URLs for paging through the results.

since 2.13

Parameters

$submenu_arguments

array

Current view, pagination and sort parameters.

$include_filters

object

True to include "filter-by" parameters, e.g., year/month dropdown.

Returns

arrayupdated submenu_arguments.

 Properties

 

Items returned by custom bulk action(s)

$bulk_action_includes : array

since 2.13
 

Options for the thumbnail generation bulk action

$bulk_action_options : array

since 2.13

 Constants

 

Uniquely identifies the Thumbnails bulk action

MLA_GFI_ACTION : string

since 2.13