\MLA_Thumbnail

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

Summary

Methods
Properties
Constants
initialize()
admin_enqueue_scripts()
mla_list_table_help_template()
mla_list_table_begin_bulk_action()
mla_list_table_custom_bulk_action()
mla_list_table_end_bulk_action()
mla_list_table_get_bulk_actions()
mla_list_table_inline_parse()
mla_list_table_submenu_arguments()
No public properties found
MLA_GFI_ACTION
No protected methods found
No protected properties found
N/A
No private methods found
$bulk_action_options
$bulk_action_includes
N/A

Constants

MLA_GFI_ACTION

MLA_GFI_ACTION

Uniquely identifies the Thumbnails bulk action

Properties

$bulk_action_options

$bulk_action_options : array

Options for the thumbnail generation bulk action

Type

array

$bulk_action_includes

$bulk_action_includes : array

Items returned by custom bulk action(s)

Type

array

Methods

initialize()

initialize() : void

Initialization function, similar to __construct()

admin_enqueue_scripts()

admin_enqueue_scripts(  $page_hook) : void

Load the plugin's Style Sheet and Javascript files

Parameters

$page_hook

mla_list_table_help_template()

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

Load the MLA_List_Table dropdown help menu template

Add the thumbnail generation options documentation.

Parameters

array $template_array

NULL, to indicate no replacement template.

string $file_name

the complete name of the default template file.

string $file_suffix

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

mla_list_table_begin_bulk_action()

mla_list_table_begin_bulk_action(array  $item_content, string  $bulk_action) 

Begin an MLA_List_Table bulk action

Prepare the thumbnail generation options.

Parameters

array $item_content

NULL, to indicate no handler.

string $bulk_action

the requested action.

mla_list_table_custom_bulk_action()

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

Process an MLA_List_Table custom bulk action

Creates new items from the "Bulk Translate" list.

Parameters

array $item_content

NULL, to indicate no handler.

string $bulk_action

the requested action.

integer $post_id

the affected attachment.

Returns

object —

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

mla_list_table_end_bulk_action()

mla_list_table_end_bulk_action(array  $item_content, string  $bulk_action) 

End an MLA_List_Table bulk action

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

Parameters

array $item_content

NULL, to indicate no handler.

string $bulk_action

the requested action.

mla_list_table_get_bulk_actions()

mla_list_table_get_bulk_actions(array  $actions) : array

Filter the MLA_List_Table bulk actions

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

Parameters

array $actions

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

Returns

array —

updated array of actions.

mla_list_table_inline_parse()

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

MLA_List_Table inline edit parse

Parameters

$html_markup
$item_template
$item_values

Returns

array —

updated HTML markup for the Quick and Bulk Edit forms

mla_list_table_submenu_arguments()

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

Filter the "sticky" submenu URL parameters

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

Parameters

array $submenu_arguments

Current view, pagination and sort parameters.

object $include_filters

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

Returns

array —

updated submenu_arguments.