Yoast\WP\SEO\Bulk_Editor\User_Interface
Bulk_Editor_Integration::get_premium_update_url
Returns the one-click Premium update URL for the current user, or an empty string when the user lacks the update_plugins capability (and would hit a wp_die permission error on update.php).
Метод класса: Bulk_Editor_Integration{}
Хуков нет.
Возвращает
string. The nonce-protected update URL, or an empty string.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_premium_update_url( $can_update_plugins ): string;
- $can_update_plugins(true|false) (обязательный)
- Whether the current user may update plugins.
Код Bulk_Editor_Integration::get_premium_update_url() Bulk Editor Integration::get premium update url Yoast 28.9
private function get_premium_update_url( bool $can_update_plugins ): string {
if ( ! $can_update_plugins ) {
return '';
}
return $this->get_plugin_update_url( 'wordpress-seo-premium/wp-seo-premium.php' );
}