Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: install_themes_table_api_args_{$tab}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
140            *  - `install_themes_table_api_args_new`
141            *  - `install_themes_table_api_args_search`
142            *  - `install_themes_table_api_args_updated`
143            *  - `install_themes_table_api_args_upload`
144            *
145            * @since 3.7.0
146            *
147            * @param array|false $args Theme install API arguments.
148            */
149           $args = apply_filters( "install_themes_table_api_args_{$tab}", $args );
150
151           if ( ! $args ) {
152                return;
153           }
154
155           $api = themes_api( 'query_themes', $args );
156
157           if ( is_wp_error( $api ) ) {
158                wp_die( '<p>' . $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try Again' ) . '</a></p>' );