FS_Plugin_Updater
Description Description
Source Source
File: includes/pum-sdk/freemius/includes/class-fs-plugin-updater.php
Expand full source code Collapse full source code View on Trac
Methods Methods
- __construct
- _fetch_plugin_info_from_repository — Try to fetch plugin's info from .org repository.
- _maybe_adjust_source_dir — Adjust the plugin directory name if necessary.
- _maybe_update_folder_name — This is a special after upgrade handler for migrating modules that didn't use the '-premium' suffix folder structure before the migration.
- _store_basename_for_source_adjustment — Store the basename since it's not always available in the `_maybe_adjust_source_dir` method below.
- add_transient_filters
- catch_plugin_information_dialog_contents
- catch_plugin_update_row — Capture plugin update row by turning output buffering.
- change_theme_update_info_html
- delete_update_data
- edit_and_echo_plugin_information_dialog_contents
- edit_and_echo_plugin_update_row — Overrides default update message format with "renew your license" message.
- fetch_wp_org_module_translation_updates — Fetches module translation updates from wordpress.org.
- filters — Initiate required filters.
- get_installed_translations
- get_latest_download_details
- get_update_details — Get module's required data for the updates mechanism.
- http_request_host_is_external_filter — Since WP version 3.6, a new security feature was added that denies access to repository with a local ip.
- install_and_activate_plugin — Installs and active a plugin when explicitly requested that from a 3rd party service.
- instance
- is_correct_folder_name — Checks if a given basename has a matching folder name with the current context plugin.
- is_premium_plugin_active — Check if a premium module version is already active.
- plugins_api_filter — Updates information on the "View version x.x details" page with custom data.
- pre_set_site_transient_update_plugins_filter — Check for Updates at the defined API endpoint and modify the update array.
- remove_transient_filters
- set_update_data — Update the updates transient with the module's update information.
- try_activate_plugin — Tries to activate a plugin. If fails, returns the error.