ngg_manage_images_columns
Apply a filter to the columns.
Description
Parameters (1)
- 0. $columns (unknown)
- The columns.
Usage
- To run the hook, copy the example below.
- $columns = apply_filters( 'ngg_manage_images_columns', $columns );
- if ( !empty( $columns ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the ngg_manage_images_columns callback
- function filter_ngg_manage_images_columns( $columns ) {
- // make filter magic happen here...
- return $columns;
- };
- // add the filter
- add_filter( 'ngg_manage_images_columns', 'filter_ngg_manage_images_columns', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'ngg_manage_images_columns', 'filter_ngg_manage_images_columns', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /admin/manage/class-ngg-image-list-table.php
- $columns = apply_filters( 'ngg_manage_images_columns', $columns );