-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
54 lines (45 loc) · 2.2 KB
/
functions.php
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
44
45
46
47
48
49
50
51
52
53
54
<? php
// Shortcodes from custom-shortcodes.php
// function prefix: "Shortcode"
include_once('custom-shortcodes.php');
// Creates shortcode for displaying the current date's breakfast menu title.
add_action('init', 'breakfast_menu_title_shortcode_init');
function breakfast_menu_title_shortcode_init() {
add_shortcode('breakfast_menu_title', 'Shortcodes_generateBreakfastMenuTitle');
}
// Creates shortcode for displaying the current date's breakfast menu.
add_action('init', 'breakfast_menu_contents_shortcode_init');
function breakfast_menu_contents_shortcode_init() {
add_shortcode('breakfast_menu_contents', 'Shortcodes_BreakfastMenuContents');
}
// Creates shortcode for displaying the current date's lunch menu title.
add_action('init', 'lunch_menu_title_shortcode_init');
function lunch_menu_title_shortcode_init() {
add_shortcode('lunch_menu_title', 'Shortcodes_generateLunchMenuTitle');
}
// Creates shortcode for displaying the current date's lunch menu.
add_action('init', 'lunch_menu_contents_shortcode_init');
function lunch_menu_contents_shortcode_init() {
add_shortcode('lunch_menu_contents', 'Shortcodes_LunchMenuContents');
}
// Creates shortcode for displaying the current date's dinner menu title.
add_action('init', 'dinner_menu_title_shortcode_init');
function dinner_menu_title_shortcode_init() {
add_shortcode('dinner_menu_title', 'Shortcodes_generateDinnerMenuTitle');
}
// Creates shortcode for displaying the current date's dinner menu.
add_action('init', 'dinner_menu_contents_shortcode_init');
function dinner_menu_contents_shortcode_init() {
add_shortcode('dinner_menu_contents', 'Shortcodes_DinnerMenuContents');
}
// Creates shortcode for displaying the current date's dessert menu title.
add_action('init', 'dessert_menu_title_shortcode_init');
function dessert_menu_title_shortcode_init() {
add_shortcode('dessert_menu_title', 'Shortcodes_generateDessertMenuTitle');
}
// Creates shortcode for displaying the current date's dessert menu.
add_action('init', 'dessert_menu_contents_shortcode_init');
function dessert_menu_contents_shortcode_init() {
add_shortcode('dessert_menu_contents', 'Shortcodes_DessertMenuContents');
}
?>