first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
class OTGS_Installer_Buy_URL_Hooks {
private $embedded_at;
public function __construct( $embedded_at ) {
$this->embedded_at = $embedded_at;
}
public function add_hooks() {
add_filter( 'wp_installer_buy_url', array( $this, 'append_installer_source' ) );
}
/**
* @param string $url
*
* @return string
*/
public function append_installer_source( $url ) {
$url = add_query_arg( 'embedded_at', $this->embedded_at, $url );
return $url;
}
}