BP_BuddyBoss_Platform_Updater::__construct( $api_url, $plugin_path, $plugin_id, $license = '' )
Description
Source
File: bp-core/classes/class-bp-buddyboss-platform-updater.php
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | function __construct( $api_url , $plugin_path , $plugin_id , $license = '' ) { $this ->api_url = $api_url ; $this ->plugin_path = $plugin_path ; $this ->license = $license ; $this ->plugin_id = $plugin_id ; if ( strstr ( $plugin_path , '/' ) ) { list ( $part1 , $part2 ) = explode ( '/' , $plugin_path ); } else { $part2 = $plugin_path ; } $this ->plugin_slug = str_replace ( '.php' , '' , $part2 ); add_filter( 'pre_set_site_transient_update_plugins' , array ( & $this , 'update_plugin' ) ); add_filter( 'plugins_api' , array ( & $this , 'plugins_api' ), 10, 3 ); } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.