install_themes_table_api_args_<old_filter>
This filter is documented in wp-admin/includes/class-wp-theme-install-list-table.php.
Description
Parameters (1)
- 0. $args (unknown)
- The args.
Usage
- To run the hook, copy the example below.
- $args = apply_filters( 'install_themes_table_api_args_{$old_filter}', $args );
- if ( !empty( $args ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the install_themes_table_api_args_<old_filter> callback
- function filter_install_themes_table_api_args_old_filter( $args ) {
- // make filter magic happen here...
- return $args;
- };
- // add the filter
- add_filter( "install_themes_table_api_args_{$old_filter}", 'filter_install_themes_table_api_args_old_filter', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( "install_themes_table_api_args_{$old_filter}", 'filter_install_themes_table_api_args_old_filter', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-admin/includes/ajax-actions.php
- $args = apply_filters( 'install_themes_table_api_args_' . $old_filter, $args );