__construct()
mla_list_table_add_icl_styles()
mla_list_table_build_inline_data()
mla_list_table_column_default()
mla_list_table_get_columns()
mla_list_table_new_instance()
mla_list_table_submenu_arguments()
mla_views_media_page_mla_menu_filter()
mla_wpml_media_view_upload_count_filter()
mla_wpml_media_view_upload_page_count_filter()
mla_wpml_media_view_upload_page_sql_filter()
mla_wpml_media_view_upload_sql_filter()
$language_columns
$mla_list_table
Class MLA (Media Library Assistant) WPML Table provides support for the WPML Multilingual CMS family of plugins, including WPML Media, for an MLA_List_Table object.
An instance of this class is created in the class MLA_List_Table constructor (class-mla-list-table.php).
package | Media Library Assistant |
---|---|
since | 2.11 |
__construct(object $table) : void
since | 2.11 |
---|
object
The MLA_List_Table object this object supports
mla_list_table_add_icl_styles() : void
since | 2.11 |
---|
mla_list_table_build_inline_data(string $inline_data, object $item) : string
Adds a 'lang' value for the JS Quick Edit function.
since | 2.15 |
---|
string
The HTML markup for inline data.
object
The current Media Library item.
string
updated HTML markup for inline data.mla_list_table_column_default(string $content, array $item, array $column_name) : string
Fills in the Language columns with the item's translation status values.
since | 2.11 |
---|
string
NULL, indicating no default content
array
A singular item (one full row's worth of data)
array
The name/slug of the column to be processed
string
Text or HTML to be placed inside the columnmla_list_table_get_columns(array $columns) : array
Inserts the language columns just after the item thumbnail column. Defined as static because it is called before the List_Table object is created. Added as a filter when the file is loaded.
since | 2.11 |
---|
array
An array of columns. format: column_slug => Column Label
array
updated array of columns.mla_list_table_new_instance(object $mla_list_table) : object
Adds a protected variable holding a reference to the WPML_List_Table object, then creates the WPML_List_Table passing it a reference to the new "parent" object.
since | 2.11 |
---|
object
NULL, to indicate no extension/use the base class.
object
updated mla_list_table object.mla_wpml_media_view_upload_count_filter(NULL $count, string $key, string $view, string $lang) : mixed
Computes the number of attachments that satisfy a meta_query specification. The count is automatically made language-specific by WPML filters.
since | 2.11 |
---|
NULL
default return value if not replacing count
string
key/slug value for the selected view
string
language code, e.g., 'en', 'es'
mixed
NULL to allow SQL query or replacement count valuemla_wpml_media_view_upload_page_count_filter(NULL $count, string $lang) : mixed
Computes the number of language-specific attachments that satisfy a meta_query specification. The count is made language-specific by WPML filters when the current_language is set.
since | 2.11 |
---|
NULL
default return value if not replacing count
string
language code, e.g., 'en', 'es'
mixed
NULL to allow SQL query or replacement count valuemla_wpml_media_view_upload_page_sql_filter(string $sql, string $lang) : mixed
Computes the number of language-specific attachments that satisfy a meta_query specification. The count is made language-specific by WPML filters when the current_language is set.
since | 2.11 |
---|
string
SQL query string
string
language code, e.g., 'en', 'es'
mixed
updated SQL query stringmla_wpml_media_view_upload_sql_filter(string $sql, string $lang) : mixed
Computes the number of language-specific attachments that satisfy a meta_query specification. The count is made language-specific by WPML filters when the current_language is set.
since | 2.11 |
---|
string
SQL query string
string
language code, e.g., 'en', 'es'
mixed
updated SQL query string$language_columns : array
Defined as static because it is used before the List_Table object is created.
since | 2.11 |
---|
$mla_list_table : object
since | 2.11 |
---|