-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
52 lines (38 loc) · 1.49 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
<?php
// Fix empty <title>s, remove .hentry from posts, enqueue Google Fonts
include('functions/template-tweaks.php');
// Register template component loading method
include('functions/component-loader.php');
// Register event post query function
include('functions/event-query.php');
// Register custom menu
include('functions/custom-menu.php');
// Customise admin log-in page
include('functions/custom-login-page.php');
// Set up custom post types
include('functions/custom-post-types.php');
// Disable default post type and comments
include('functions/disable-default-post-types.php');
// Set-up custom columns and post sorting in backend
include('functions/custom-post-type-admin.php');
// Register custom image sizes
if (function_exists('add_image_size')) {
add_image_size('hgnm-thumb', 200, 200, true);
add_image_size('hgnm-main', 600, 400, true);
}
// Configure archive year query and permalink rewrites
include('functions/configure-archives.php');
// Configure core options
include('functions/configure-core-options.php');
// Initialize the theme update checker
require 'functions/theme-update-checker.php';
$example_update_checker = new ThemeUpdateChecker(
'hgnm-2014',
'https://raw.githubusercontent.com/HGNM/hgnm-2014/master/package.json'
);
// Set up Advanced Custom Fields field groups
include('functions/acf-field-groups.php');
// Set up Advanced Custom Fields theme options page
include('functions/acf-theme-options.php');
// Disable wp-emoji
include('functions/disable-wp-emoji.php');