-
Notifications
You must be signed in to change notification settings - Fork 0
/
vinyl.php
56 lines (47 loc) · 1.45 KB
/
vinyl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Plugin Name: Vinyl Audio
* Plugin URI: https://github.com/wp-blocks/vinyl
* Description: An advanced WordPress audio player.
* Version: 0.1.3
* Requires at least: 6.3
* Requires PHP: 7.4
* Author: codekraft, bitmachina
* Author URI: https://github.com/wp-blocks
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: vinyl
* Domain Path: /languages
*
* @package vinyl
*/
if ( !defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if ( version_compare( phpversion(), '7.4.0', '<' ) ) {
/**
* @return void
*/
function vinyl_minimum_php_version_notice() {
echo '<div class="notice notice-error"><p>' . esc_html__( 'Vinyl Audio requires PHP 7.4 or higher.', 'vinyl' ) . '</p></div>';
}
add_action( 'admin_notices', 'vinyl_minimum_php_version_notice' );
return;
}
if ( !is_wp_version_compatible( '6.3' ) ) {
/**
* @return void
*/
function vinyl_minimum_wp_version_notice() {
echo '<div class="notice notice-error"><p>' . esc_html__( 'Vinyl Audio requires WordPress 6.3 or later.', 'vinyl' ) . '</p></div>';
}
add_action( 'admin_notices', 'vinyl_minimum_wp_version_notice' );
return;
}
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once( __DIR__ . '/vendor/autoload.php' );
}
/**
* Start the Vinyl audio plugin.
*/
WpBlocks\Vinyl\Core::get_instance()->boot( __FILE__ );