-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.php
93 lines (50 loc) · 1.7 KB
/
application.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
force_login_to_site();
show_admin_bar(false);
/* SCRIPTS */
add_my_script('main.js', array('jquery'));
add_my_admin_script('admin.js');
/* STYLES */
add_my_style('wp-required-styles.css');
add_my_style('main.css');
add_my_admin_style('admin.css');
add_my_editor_style('wp-editor-styles.css');
/* CUSTOM POST TYPES */
//add_post_type('agreement', 'Agreements');
/* IMAGE SIZES */
// add_image_size('lg', 1700, 9999);
// add_image_size('md', 1200, 9999);
// add_image_size('sm', 900, 9999);
/* CUSTOM OPTIONS PAGES */
//if(function_exists('acf_add_options_sub_page')){
// acf_add_options_sub_page(array(
// 'page_title' => 'Footer settings',
// 'menu_title' => 'Footer settings',
// 'menu_slug' => 'settings-footer',
// 'capability' => 'edit_posts',
// 'redirect' => false,
// 'parent_slug' => 'options-general.php',
// ));
//}
/* SIDEBARS */
//add_sidebar('id', 'title');
remove_default_widgets();
/* MENUS */
add_theme_support('menus');
register_nav_menu("main", "Main menu");
/* THUMBNAILS */
//add_theme_support('post-thumbnails', array( 'post' ));
//set_post_thumbnail_size(200, 200, true);
/* REMOVE ITEMS FROM UI */
remove_item_from_admin_menu('index.php'); // Dashboard
remove_item_from_admin_menu('edit.php'); // Posts
remove_item_from_admin_menu('upload.php'); // Media library
remove_item_from_admin_menu('edit.php?post_type=page'); // Pages
remove_item_from_admin_menu('edit-comments.php'); // Comments
remove_item_from_admin_bar('customize');
remove_item_from_admin_bar('new-content');
remove_item_from_admin_bar('comments');
remove_item_from_admin_bar('search');
remove_item_from_admin_bar('wp-logo');
/* OTHER */
add_theme_support('automatic-feed-links');