WPSEO_Admin_Utils::get_activation_url()
Gets the activation URL for the passed plugin slug.
Метод класса: WPSEO_Admin_Utils{}
Хуков нет.
Возвращает
Строку
. The activation URL. Empty string if the current user doesn't have the proper capabilities.
Использование
$result = WPSEO_Admin_Utils::get_activation_url( $slug );
- $slug(строка) (обязательный)
- The slug to create an activation link for.
Код WPSEO_Admin_Utils::get_activation_url() WPSEO Admin Utils::get activation url Yoast 23.5
public static function get_activation_url( $slug ) { if ( ! current_user_can( 'install_plugins' ) ) { return ''; } return wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin_status=all&paged=1&s&plugin=' . $slug ), 'activate-plugin_' . $slug ); }