-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeandbeauty.php
More file actions
28 lines (25 loc) · 788 Bytes
/
codeandbeauty.php
File metadata and controls
28 lines (25 loc) · 788 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
<?php
/**
* Plugin Name: CodeAndBeauty Starter Plugin
* Description: Write your plugin description here.
* Author: Code&Beauty
* Author URI: http://www.codeandbeauty.com
* Plugin URI: http://www.codeandbeauty.com/wordpress-starter-plugin
* Version: 1.0.0
* Text Domain: TextDomain
* License: GPLv2 or higher
*/
try {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'inc/class-codeandbeauty.php';
/*d: Replace `precodeandbeauty` with your actual plugin prefix/name d:*/
function precodeandbeauty() {
return CodeAndBeauty::instance();
}
// Backward compatibility
$GLOBALS['CodeAndBeauty'] = precodeandbeauty();
} catch( Exception $e ) {
// Let someone know that your plugin have conflict
if ( function_exists( 'error_log' ) ) :
error_log( $e->getMessage() );
endif;
}