-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.php
More file actions
39 lines (31 loc) · 916 Bytes
/
main.php
File metadata and controls
39 lines (31 loc) · 916 Bytes
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
<?php
/*Plugin Name: bs Preloader
Plugin URI: https://bootscore.me/plugins/bs-preloader/
Description: Plugin adds a preloader to Bootscore theme.
Version: 5.5.2
Tested up to: 6.9
Requires at least: 5.0
Requires PHP: 7.4
Author: Bootscore
Author URI: https://bootscore.me
License: MIT License
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
/**
* Update checker
*/
require 'inc/update/plugin-update-checker.php';
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
$myUpdateChecker = PucFactory::buildUpdateChecker(
'https://github.com/bootscore/bs-preloader/',
__FILE__,
'bs-preloader'
);
//Set the branch that contains the stable release.
$myUpdateChecker->setBranch('main');
/**
* Load required files
*/
require_once plugin_dir_path( __FILE__ ) . 'inc/locate-template.php'; // Template overrides
require_once plugin_dir_path( __FILE__ ) . 'inc/enqueue.php'; // Scripts & styles