PUE::load_plugin_update_engine()
If the PUE Checker class exists, go ahead and create a new instance to handle update checks for this plugin.
Source
File: src/Tribe/PUE.php
public function load_plugin_update_engine() { /** * Filters whether Events Virtual PUE component should manage the plugin updates or not. * * @since 1.0.0 * * @param bool $pue_enabled Whether Events Virtual PUE component should manage the plugin updates or not. * @param string $pue_slug The Events Virtual plugin slug used to register it in the Plugin Update Engine. */ $pue_enabled = apply_filters( 'tribe_enable_pue', true, static::get_slug() ); if ( ! ( $pue_enabled && class_exists( 'Tribe__PUE__Checker' ) ) ) { return; } $this->pue_instance = new Tribe__PUE__Checker( $this->update_url, static::get_slug(), [], plugin_basename( Plugin::FILE ) ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |