I trying to update my theme with this plugin: https://github.com/jeremyclark13/automatic-theme-plugin-update
In my style.css
I have Version: 1.0
.
In update.php
I set $api_url
to https://my_special_domain_for_themes.com/api/
.
In functions.php
I added: require( get_template_directory() . '/inc/update.php' );
.
In https://my_special_domain_for_themes.com/api/packages.php
I have:
$packages['my_theme'] = array( //Replace theme with theme stylesheet slug that the update is for
'versions' => array(
'1.3' => array( //Array name should be set to current version of update
'version' => '1.3', //Current version available
'date' => '2015-07-20', //Date version was released
//theme.zip is the same as file_name
'package' => 'https://my_special_domain_for_themes.com/api/download.php?key=' . md5('my_theme.zip' . mktime(0,0,0,date("n"),date("j"),date("Y"))),
//file_name is the name of the file in the update folder.
'file_name' => 'my_theme.zip', //File name of theme zip file
'author' => 'Me', //Author of theme
'name' => 'my_theme', //Name of theme
'requires' => '4.2.2', //Wordpress version required
'tested' => '4.2.2', //WordPress version tested up to
'screenshot_url' => 'https://my_special_domain_for_themes.com/my_theme.png' //url of screenshot of theme
)
),
'info' => array(
'url' => 'https://my_special_domain_for_themes.com' // Website devoted to theme if available
)
);
But I can’t get it works. I dont’ have any info about new update. What I’m doing wrong?