PUM_Utils_Upgrades::__construct()

Sets up the Upgrades class instance.


Description Description


Source Source

File: classes/Utils/Upgrades.php

	public function __construct() {
		// Update stored plugin version info.
		self::update_plugin_version();

		// Render upgrade admin notices.
		add_filter( 'pum_alert_list', array( $this, 'upgrade_alert' ) );
		// Add Upgrade tab to Tools page when upgrades available.
		add_filter( 'pum_tools_tabs', array( $this, 'tools_page_tabs' ) );
		// Render tools page upgrade tab content.
		add_action( 'pum_tools_page_tab_upgrades', array( $this, 'tools_page_tab_content' ) );
		// Ajax upgrade handler.
		add_action( 'wp_ajax_pum_process_upgrade_request', array( $this, 'process_upgrade_request' ) );
		// Register core upgrades.
		add_action( 'pum_register_upgrades', array( $this, 'register_processes' ) );

		// Initiate the upgrade registry. Must be done after versions update for proper comparisons.
		$this->registry = PUM_Upgrade_Registry::instance();
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.