-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
42 lines (29 loc) · 1.3 KB
/
functions.php
File metadata and controls
42 lines (29 loc) · 1.3 KB
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
<?php
// Setup
define("MR_DEV_MODE", true);
// Include
include( get_theme_file_path( "/includes/front/enqueue.php" ) );
include( get_theme_file_path( "/includes/setup.php" ) );
include( get_theme_file_path( "/includes/custom-nav-walker.php" ) );
include( get_theme_file_path( "/includes/widgets.php" ) );
include( get_theme_file_path( "/includes/cleanup-and-reorder/cleanup.php" ) );
include( get_theme_file_path( "/includes/cleanup-and-reorder/reorder-menu.php" ) );
include( get_theme_file_path( "/includes/custom-posts-types/cpt-1.php" ) );
include( get_theme_file_path( "/includes/admin/glance.php" ) );
include( get_theme_file_path( "/includes/admin/activity.php" ) );
// Hooks
add_action( "wp_enqueue_scripts", "mr_enqueue" );
add_action( "after_setup_theme", "mr_setu_theme");
add_action( "widgets_init", "mr_widgets");
// Hooking up our function to theme setup
add_action('init', 'mr_create_posttype');
// custom post types
add_action('init', 'mr_post_type_news');
add_action('init', 'mr_waste_scripts', PHP_INT_MAX - 1);
// for editing admin icons and ordres
//add_action("admin_menu", "mr_edit_admin_menu", 999);
// Dashboard at a Glance
add_action( 'dashboard_glance_items', 'mr_at_glance_content_table_end' );
// Filters
add_filter( 'dashboard_recent_posts_query_args', 'mr_put_cpt_to_dashbord');
// Shortcodes