-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.php
More file actions
43 lines (36 loc) · 1006 Bytes
/
functions.php
File metadata and controls
43 lines (36 loc) · 1006 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
40
41
42
43
<?php
/**
* Constant definition and call theme's main file and run it.
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package Cream_Blog
* @author Themebeez <themebeez@gmail.com>
* @copyright Copyright (c) 2018, Themebeez
* @link http://themebeez.com/themes/cream-blog/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
$cream_blog_theme = wp_get_theme( 'cream-blog' );
define( 'CREAM_BLOG_VERSION', $cream_blog_theme->get( 'Version' ) );
require get_template_directory() . '/inc/class-cream-blog.php';
/**
* Theme's main function.
*
* @since 1.0.0
*/
function cream_blog_run() {
$cream_blog = new Cream_Blog();
}
cream_blog_run();
add_action(
'init',
function () {
new Cream_Blog_Theme_Welcome_Notice(
'Cream Blog',
admin_url( 'admin.php?page=cream-blog' ),
array(
'themebeez-toolkit/themebeez-toolkit.php' => 'https://downloads.wordpress.org/plugin/themebeez-toolkit.zip',
)
);
}
);