jetpack_package_versions

jetpack_package_versions

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('jetpack_package_versions') is found 2 times:

  • /vendor/automattic/jetpack-connection/src/class-manager.php line 1150
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
        ? $stats_options['blog_id']
        : null;
     
    /* This action is documented in src/class-package-version-tracker.php */
    $package_versions = apply_filters( 'jetpack_package_versions', array() );
     
    $active_plugins_using_connection = Plugin_Storage::get_all();
     
    /**
     * Filters the request body for additional property addition.
     *
  • /vendor/automattic/jetpack-connection/src/class-package-version-tracker.php line 65
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    * @since 1.30.2
     *
     * @param array An associative array of Jetpack package slugs and their corresponding versions as key/value pairs.
     */
    $filter_versions = apply_filters( 'jetpack_package_versions', array() );
     
    if ( ! is_array( $filter_versions ) ) {
        return;
    }
     
    $option_versions = get_option( self::PACKAGE_VERSION_OPTION, array() );

See this hook used in plugins: