Yoast\WP\SEO\Bulk_Editor\User_Interface
Bulk_Editor_Integration::get_plugin_update_url
Builds the nonce-protected one-click update URL of a plugin, as the Plugins screen links it.
Метод класса: Bulk_Editor_Integration{}
Хуков нет.
Возвращает
string. The update URL.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_plugin_update_url( $plugin_file ): string;
- $plugin_file(строка) (обязательный)
- The plugin file, relative to the plugins directory.
Код Bulk_Editor_Integration::get_plugin_update_url() Bulk Editor Integration::get plugin update url Yoast 28.9
private function get_plugin_update_url( string $plugin_file ): string {
return \html_entity_decode(
\wp_nonce_url(
\self_admin_url( 'update.php?action=upgrade-plugin&plugin=' . \rawurlencode( $plugin_file ) ),
'upgrade-plugin_' . $plugin_file,
),
\ENT_COMPAT,
);
}