BSF_Update_Manager::__construct()
Constructor function that initializes required sections
Description
Source
File: admin/bsf-core/class-bsf-update-manager.php
public function __construct() { // update data to WordPress's transient. add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'brainstorm_update_plugins_transient', ) ); add_filter( 'pre_set_site_transient_update_themes', array( $this, 'brainstorm_update_themes_transient' ) ); // display changelog in update details. add_filter( 'plugins_api', array( $this, 'bsf_get_plugin_information' ), 10, 3 ); // display correct error messages. add_action( 'load-plugins.php', array( $this, 'bsf_update_display_license_link' ) ); add_filter( 'upgrader_pre_download', array( $this, 'modify_download_package_message' ), 20, 3 ); add_action( 'bsf_get_plugin_information', array( $this, 'plugin_information' ) ); }
Expand full source code Collapse full source code View on Trac