-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathautoloader.php
More file actions
37 lines (31 loc) · 897 Bytes
/
autoloader.php
File metadata and controls
37 lines (31 loc) · 897 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
<?php
/**
* @year: 2019-03-27
*/
add_action( 'admin_head', function () {
if ( 'plugins' === get_current_screen()->id && !class_exists( 'CSF' ) ){
?>
<div id="message" class="updated notice is-dismissible"><p>
To work <b>#1 RW WordPress AddOn</b> plugin, please download and install <a href="https://github.com/Codestar/codestar-framework" target="_blank">Codestar Framework</a>.
</p></div>
<?php
}
});
/**
* Include all php file in subfolder
*/
foreach ( glob( RW_PLUGIN_DIR . 'functions/*.php' ) as $file ){
$file = basename($file);
require RW_PLUGIN_DIR . 'functions/' . $file;
}
/**
* Include all php file in subfolder
*/
foreach ( glob( RW_PLUGIN_DIR . 'functions/*/*.php' ) as $file ){
include_once $file;
}
/*foreach ( glob( RW_PLUGIN_DIR . 'ext/*.php' ) as $file ){
add_action('plugins_loaded', function () use ($file) {
include_once $file;
});
}*/