-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
27 lines (22 loc) · 1.18 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
<?php
/**
* Theme functions file. Requires files from inc/ and bootstraps the theme.
*/
namespace H2;
require __DIR__ . '/inc/namespace.php';
require __DIR__ . '/inc/compat/namespace.php';
require __DIR__ . '/inc/emoji/namespace.php';
require __DIR__ . '/inc/rest_api/class-widgets-controller.php';
add_action( 'after_setup_theme', __NAMESPACE__ . '\\adjust_default_filters' );
add_action( 'after_setup_theme', __NAMESPACE__ . '\\set_up_theme' );
add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\enqueue_assets' );
add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\\enqueue_typekit_fonts' );
add_filter( 'pre_option_permalink_structure', __NAMESPACE__ . '\\get_permalink_structure' );
add_action( 'init', __NAMESPACE__ . '\\update_wp_rewrite_permalink_structure' );
add_action( 'init', __NAMESPACE__ . '\\register_custom_meta' );
add_action( 'rest_api_init', __NAMESPACE__ . '\\register_rest_routes' );
add_filter( 'rest_user_collection_params', __NAMESPACE__ . '\\increase_api_user_limit' );
add_action( 'clean_user_cache', __NAMESPACE__ . '\\flush_preload_cache' );
add_filter( 'widget_update_callback', __NAMESPACE__ . '\\flush_preload_cache' );
Compat\bootstrap();
Emoji\bootstrap();