Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: upgrader_package_options

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
676            *         @type bool   $bulk                 Whether the update process is a bulk update. Default true.
677            *         @type string $plugin               The base plugin path from the plugins directory.
678            *         @type string $theme                The stylesheet or template name of the theme.
679            *         @type string $language_update_type The language pack update type. Accepts 'plugin', 'theme',
680            *                                            or 'core'.
681            *         @type object $language_update      The language pack update offer.
682            *     }
683            * }
684            */
685           $options = apply_filters( 'upgrader_package_options', $options );
686
687           if ( ! $options['is_multi'] ) { // call $this->header separately if running multiple times
688                $this->skin->header();
689           }
690
691           // Connect to the Filesystem first.
692           $res = $this->fs_connect( array( WP_CONTENT_DIR, $options['destination'] ) );
693           // Mainly for non-connected filesystem.
694           if ( ! $res ) {