Advertisement
websupporter

Hook into the plugin update process of WordPress part II

Jun 3rd, 2015
716
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2. $obj = new stdClass();
  3. $obj->slug = 'autoupdater/autoupdater.php';  
  4. $obj->name = 'Autoupdate Tester';
  5. $obj->plugin_name = 'autoupdater/autoupdater.php';
  6. $obj->new_version = '1.2';
  7. $obj->requires = '4.0';  
  8. $obj->tested = '4.2.2';  
  9. $obj->downloaded = 12540;  
  10. $obj->last_updated = '2015-06-01';  
  11. $obj->sections = array(  
  12.     'description' => 'The new version of the Autoupdate Tester',  
  13.     'another_section' => 'This is another section',  
  14.     'changelog' => 'Some new features'  
  15. );
  16. $obj->download_link = 'http://websupporter.net/current-version.zip';  
  17. echo serialize($obj);
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement