Files
centro-de-funciones/functions/insert-code-header.php
T

50 lines
1.5 KiB
PHP

<?php
if (!defined('ABSPATH')) {
exit; // Seguridad: evita acceso directo
}
function custom_header_code()
{
$humans = file_exists("humans.txt");
if (!$humans) {
$createFile = fopen("humans.txt", "w") or die("Unable to open file!");
$txt = "/* TEAM */ \n";
fwrite($createFile, $txt);
$txt = "Desarrollado por: Alejandro Castro Molina \n";
fwrite($createFile, $txt);
$txt = "Email: alcastromol@gmail.com \n";
fwrite($createFile, $txt);
$txt = "Location: Acapulco, Gro., Méx \n";
fwrite($createFile, $txt);
$txt = " \n";
fwrite($createFile, $txt);
$txt = " \n";
fwrite($createFile, $txt);
$txt = "/* SITE */ \n";
fwrite($createFile, $txt);
$txt = "Last update: " . date("Y/m/d") . " \n";
fwrite($createFile, $txt);
$txt = "Standards: Html5, CSS3 (tailwindcss), Js (vanilla) y PHP 8.3 \n";
fwrite($createFile, $txt);
$txt = "Components: jQuery. \n";
fwrite($createFile, $txt);
$txt = "Software: Tema Personalizado desarrollado desde 0 \n";
fwrite($createFile, $txt);
fclose($createFile);
}
?>
<!--================================================
= Autoria del desarrollo Web =
=================================================-->
<link type="text/plain" rel="author" href="<?php echo get_home_url(); ?>/humans.txt" />
<!--==== Autoria del desarrollo Web ====-->
<?php
}
add_action('wp_head', 'custom_header_code');