1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44:
<?php
class Leads_Branching {
public function __construct() {
self::load_hooks();
}
public static function load_hooks() {
add_filter( 'inbound_plugin_branches' , array( __CLASS__ , 'add_branches' ) , 10 , 1 );
}
public static function add_branches( $branches ) {
$branches['leads'] = array(
'git' => 'https://codeload.github.com/inboundnow/leads/zip/master',
'svn' => 'https://downloads.wordpress.org/plugin/leads.'.WPL_CURRENT_VERSION.'.zip'
);
return $branches;
}
}
new Leads_Branching;