| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; // Exit if accessed directly. |
| 5 |
} |
| 6 |
|
| 7 |
/* |
| 8 |
Plugin Name: BH Custom Preloader |
| 9 |
Plugin URI: https://wordpress.org/plugins/bh-custom-preloader/ |
| 10 |
Description: This is BH Custom Preloader WordPress plugin.It will be enable Preloader on your web site. You can change Every things from settings |
| 11 |
Author: Themesvila |
| 12 |
Author URI: https://themesvila.com/ |
| 13 |
Version: 2.8 |
| 14 |
Requires at least: 6.0 |
| 15 |
Tested up to: 7.1 |
| 16 |
Requires PHP: 7.4 |
| 17 |
License: GPL v2 or later |
| 18 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 19 |
Text Domain: custom-preloader |
| 20 |
*/ |
| 21 |
|
| 22 |
|
| 23 |
//define |
| 24 |
|
| 25 |
define( 'BHCUSTOMPREPLUGINDIR', dirname( __FILE__ ) ); |
| 26 |
|
| 27 |
// Some configure |
| 28 |
define('BHCUSTOMPRELOADERASSETS' , WP_PLUGIN_URL .'/' . plugin_basename(dirname(__FILE__)) . '/'); |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
// Added Setting Link |
| 33 |
add_filter( 'plugin_action_links_'.plugin_basename(__FILE__), 'bh_custom_preloader_settings_link' ); |
| 34 |
function bh_custom_preloader_settings_link($links) { |
| 35 |
$newlink = sprintf("<a href='%s'>%s</a>",'admin.php?page=bh-preloader',__('Settings','custom-preloader')); |
| 36 |
$links[] = $newlink; |
| 37 |
return $links; |
| 38 |
} |
| 39 |
|
| 40 |
include_once(BHCUSTOMPREPLUGINDIR. '/inc/init.php'); |