Skip to content

Instantly share code, notes, and snippets.

@afragen
Created June 15, 2021 23:01
Show Gist options
  • Select an option

  • Save afragen/0798a060a557e374a85b4393fed4c0fd to your computer and use it in GitHub Desktop.

Select an option

Save afragen/0798a060a557e374a85b4393fed4c0fd to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: test
*/
use Fragen\Git_Updater\Plugin;
$bookings = array(
'name' => 'WooCommerce Bookings',
'slug' => 'woocommerce-bookings',
'version' => '1.15.41',
'author' => 'WooCommerce/',
'author_profile' => 'https://woocommerce.com',
'contributors' => array(
'woocommerce' => array(
'display_name' => 'WooCommerce',
'profile' => 'https://woocommerce.com',
'avatar' => 'https://woocommerce.com/wp-content/uploads/2016/07/cropped-cropped-cropped-favicon.png?w=36',
),
),
'requires' => '3.0.0',
'tested' => '5.7.2',
'compatibility' => array(
'5.7.2' => array(
'1.15.41' => array(
0 => 0,
1 => 0,
2 => 0,
),
),
),
//'rating' => ,
//'num_ratings' => ,
//'downloaded' => ,
//'last_updated' => ,
//'added' => ,
'homepage' => 'https://woocommerce.com',
'sections' => array(
'changelog' =>
'<h4>2021-06-15 - version 1.15.41</h4>
<li>Tweak - Send customer email notification when unpaid bookings are canceled.</li>
<li>Tweak - WC 5.4 compatibility.</li>
<li>Tweak - WP 5.7 compatibility.</li>',
),
//'download_link' => ,
'tags' => array(
'woothemes' => 'WooThemes',
'woocommerce' => 'WooCommerce',
),
'banners' => array(
'low' => '//woothemess3.s3.amazonaws.com/wp-updater-api/official-wc-extension-1544.png',
'high' => '//woothemess3.s3.amazonaws.com/wp-updater-api/official-wc-extension-1544.png',
),
'_changelog_url' => 'http://dzv365zjfbd8v.cloudfront.net/changelogs/woocommerce-bookings/changelog.txt',
'_product_type' => 'plugin',
//'_wporg_product' => ,
);
$bookings = (object) $bookings;
(new Plugin())->plugins_api( $bookings, 'plugin_information', false );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment