forked from washingtonstateuniversity/wsuwp-theme-ascent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
38 lines (32 loc) · 1.16 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
<?php
/**
* WSU WP Lodge Child functions and definitions
*
* @package WSU_WP_Lodge_Child
*/
/**
* Classes
*/
require_once 'classes/class-wsuwp-lodge-child.php';
require_once 'classes/class-wsuwp-lodge-child-endpoints.php';
require_once 'classes/class-wsuwp-lodge-child-helpers.php';
require_once 'classes/class-wsuwp-lodge-child-sidebars.php';
// Carry over from v0.12.3
require_once 'classes/class-ascent-uc-project.php';
/**
* Actions
*/
add_action( 'wp_enqueue_scripts', 'WSU_WP_Lodge_Child::enqueue_scripts' );
add_action( 'widgets_init', 'WSU_WP_Lodge_Child_Sidebars::add_sidebars_to_widgets_area' );
add_action( 'wp_ajax_fetch_search_results' , 'WSU_WP_Lodge_Child_Endpoints::fetch_search_results' );
add_action( 'wp_ajax_nopriv_fetch_search_results','WSU_WP_Lodge_Child_Endpoints::fetch_search_results' );
add_action( 'wp_head', 'WSU_WP_Lodge_Child::site_favicon' );
/**
* Filters
*/
add_filter( 'widget_categories_args', 'WSU_WP_Lodge_Child::widget_categories_args_filter', 10, 1 );
/**
* Shortcodes
*/
add_shortcode( 'featured_projects', 'WSU_WP_Lodge_Child::featured_projects' );
add_shortcode( 'page_login_form', 'WSU_WP_Lodge_Child::page_login_form' );