Class MLA (Media Library Assistant) Thumbnails provides support for Featured Image generation
| package |
Media Library Assistant |
|---|---|
| since | 2.13 |
_generate_wordpress_thumbnail(string $post_id, string $file, array $args, array $old_sizes = NULL) : array
Adapted from /wp-admin/includes/image.php function wp_generate_attachment_metadata()
| since | 2.40 |
|---|
stringID of the source item
stringSource file path and name
arrayImage file information, based on $_FILE in PHP uploads
arrayExisting WordPress-style thumbnail images to be deleted
arraySizes specifications for attachment metadata
admin_enqueue_scripts( $page_hook) : void
| since | 2.13 |
|---|
initialize() : void
| since | 2.13 |
|---|---|
mla_list_table_begin_bulk_action(array $item_content, string $bulk_action)
Prepare the thumbnail generation options.
| since | 2.13 |
|---|---|
arrayNULL, to indicate no handler.
stringthe requested action.
mla_list_table_custom_bulk_action(array $item_content, string $bulk_action, integer $post_id) : object
Creates new items from the "Bulk Thumbnail" list.
| since | 2.13 |
|---|
arrayNULL, to indicate no handler.
stringthe requested action.
integerthe affected attachment.
objectupdated $item_content. NULL if no handler, otherwise ( 'message' => error or status message(s), 'body' => '' )
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 |
|---|---|
arrayNULL, to indicate no handler.
stringthe requested action.
mla_list_table_get_bulk_actions(array $actions) : array
Adds the "Thumbnail" action to the Bulk Actions list.
| since | 2.13 |
|---|
arrayAn array of bulk actions. Format: 'slug' => 'Label'
arrayupdated array of actions.
mla_list_table_help_template(array $template_array, string $file_name, string $file_suffix)
Add the thumbnail generation options documentation.
| since | 2.13 |
|---|---|
arrayNULL, to indicate no replacement template.
stringthe complete name of the default template file.
stringthe $screen->id or hook suffix part of the template file name.
mla_list_table_inline_parse( $html_markup, $item_template, $item_values) : array
| since |
2.13
Adds Bulk Translate form and the Language dropdown markup used for the Quick and Bulk Edit forms. |
|---|
arrayupdated HTML markup for the Quick and Bulk Edit forms
unlink_error_handler( $type, $string, $file, $line) : boolean
| since | 2.54 |
|---|
booleantrue, to bypass PHP error handler
upload_dir(array $uploads)
| since | 2.54 |
|---|---|
arrayArray of upload directory data with keys of 'path', 'url', 'subdir, 'basedir', and 'error'.
MLA_GFI_ACTION
| since | |
|---|---|
| var |
bulk_action_includes : array
| since | |
|---|---|
| var |
array