Files
roi-theme/wp-content/plugins/w3-total-cache/Extension_Swarmify_Core.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

32 lines
748 B
PHP
Executable File

<?php
/**
* File: Extension_Swarmify_Core.php
*
* @package W3TC
*/
namespace W3TC;
/**
* Class Extension_Swarmify_Core
*/
class Extension_Swarmify_Core {
/**
* Generates the signup URL for Swarmify.
*
* @return string The generated signup URL.
*/
public static function signup_url() {
$email = get_bloginfo( 'admin_email' );
$u = wp_get_current_user();
$name = $u->first_name . ( empty( $u->first_name ) ? '' : ' ' ) . $u->last_name;
return 'https://www.swarmify.com/landing/w3tc?' .
'email=' . rawurlencode( $email ) .
'&name=' . rawurlencode( $name ) .
'&return=' . rawurlencode(
wp_nonce_url( Util_Ui::admin_url( 'admin.php' ), 'w3tc' ) . '&page=w3tc_extensions&w3tc_swarmify_set_key=set'
);
}
}