Add files via upload

This commit is contained in:
2024-11-14 10:36:52 +01:00
committed by GitHub
commit be6dfcc722
4 changed files with 514 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
/**
* Plugin Name: Vincent's WAV Recording Time Calculator
* Plugin URI: https://vincentrozenberg.com/
* Description: A calculator for determining WAV recording time based on storage capacity and audio settings.
* Version: 1.0.0
* Author: Vincent Rozenberg
* Author URI: https://vincentrozenberg.com
* License: MIT
*/
if (!defined('WPINC')) {
die;
}
function wav_calculator_shortcode() {
// Get the path to the HTML file
$file_path = plugin_dir_path(__FILE__) . 'wav-calculator-mono.php';
// Read the file content
$content = file_get_contents($file_path);
// Return the file content
return $content;
}
add_shortcode('wav_calculator', 'wav_calculator_shortcode');