Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: install_theme_overwrite_actions

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
369            * Filters the list of action links available following a single theme installation failure
370            * when overwriting is allowed.
371            *
372            * @since 5.5.0
373            *
374            * @param string[] $install_actions Array of theme action links.
375            * @param object   $api             Object containing WordPress.org API theme data.
376            * @param array    $new_theme_data  Array with uploaded theme data.
377            */
378           $install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data );
379
380           if ( ! empty( $install_actions ) ) {
381                printf(
382                     '<p class="update-from-upload-expired hidden">%s</p>',
383                     __( 'The uploaded file has expired. Please go back and upload it again.' )
384                );
385                echo '<p class="update-from-upload-actions">' . implode( ' ', (array) $install_actions ) . '</p>';
386           }
387