BSF_Update_Manager::add_beta_update_message( array $plugin_data, array $response )
Add Beta update message.
Description
Parameters
- $plugin_data
-
(array) (Required) plugin data.
- $response
-
(array) (Required) Response.
Source
File: admin/bsf-core/class-bsf-update-manager.php
public function add_beta_update_message( $plugin_data, $response ) {
$plugin_init = isset( $plugin_data['plugin'] ) ? $plugin_data['plugin'] : '';
if ( '' !== $plugin_init ) {
$product_id = brainstrom_product_id_by_init( $plugin_init );
} else {
$product_id = brainstrom_product_id_by_name( $plugin_name );
}
if ( true === self::bsf_allow_beta_updates( $product_id ) && $this->is_beta_version( $plugin_data['new_version'] ) ) {
echo ' <i>It is recommended to use the beta version on a staging enviornment only.</i>';
}
}
Expand full source code Collapse full source code View on Trac