-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.php
More file actions
40 lines (32 loc) · 840 Bytes
/
functions.php
File metadata and controls
40 lines (32 loc) · 840 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
<?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_Magazine
*/
$cream_magazine_theme = wp_get_theme( 'cream-magazine' );
define( 'CREAM_MAGAZINE_VERSION', $cream_magazine_theme->get( 'Version' ) );
require get_template_directory() . '/inc/class-cream-magazine.php';
/**
* Theme's main function.
*
* @since 1.0.0
*/
function cream_magazine_run() {
$cream_magazine = new Cream_Magazine();
}
cream_magazine_run();
add_action(
'init',
function () {
new Cream_Magazine_Theme_Welcome_Notice(
'Cream Magazine',
admin_url( 'admin.php?page=cream-magazine' ),
array(
'themebeez-toolkit/themebeez-toolkit.php' => 'https://downloads.wordpress.org/plugin/themebeez-toolkit.zip',
)
);
}
);