| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 | 
							- <?php
 
- /*************************************************
 
- // ###############  Emojis  ################## //
 
- **************************************************/
 
- function boot23_disable_emojis() {
 
- 	remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
 
- 	remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
 
- 	remove_action( 'wp_print_styles', 'print_emoji_styles' );
 
- 	remove_action( 'admin_print_styles', 'print_emoji_styles' );
 
- 	remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
 
- 	remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
 
- 	remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
 
- 	//add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
 
- 	add_filter( 'emoji_svg_url', '__return_false' );
 
- }
 
- add_action( 'init', 'boot23_disable_emojis' );
 
- /*************************************************
 
- // ############### wp_head ################## //
 
- **************************************************/
 
- remove_action('wp_head', 'index_rel_link' );
 
- remove_action('wp_head', 'rel_canonical');
 
- remove_action('wp_head', 'start_post_rel_link', 10);
 
- remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10);
 
- remove_action('wp_head', 'wp_shortlink_wp_head', 10);
 
- remove_action('wp_head', 'parent_post_rel_link', 10);
 
- remove_action('wp_head', 'rsd_link');
 
- remove_action('wp_head', 'wlwmanifest_link');
 
- remove_action('wp_head', 'wp_generator');
 
- remove_action('wp_head', 'feed_links_extra', 3 );
 
- remove_action('wp_head', 'feed_links', 2 );
 
- remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
 
- remove_action('wp_head', 'wp_oembed_add_host_js', 10);
 
- remove_action('wp_head', 'rest_output_link_wp_head', 10);
 
- remove_action('template_redirect', 'rest_output_link_header', 11, 0);
 
- function boot23_remove_wp_ver_css_js( $src ) {
 
-   if ( strpos( $src, 'ver=' ) )
 
-     $src = remove_query_arg( 'ver', $src );
 
-   return $src;
 
- }
 
- add_filter( 'style_loader_src', 'boot23_remove_wp_ver_css_js', 9999 );
 
- add_filter( 'script_loader_src', 'boot23_remove_wp_ver_css_js', 9999 );
 
- add_filter( 'xmlrpc_enabled', '__return_false' );
 
- function boot23_disable_x_pingback( $headers ) {
 
-   unset( $headers['X-Pingback'] );
 
-   return $headers;
 
- }
 
- add_filter( 'wp_headers', 'boot23_disable_x_pingback' );
 
- /*************************************************
 
- // #############  Admin Bar  ################## //
 
- **************************************************/
 
- function boot23_admin_bar_render() {
 
-   global $wp_admin_bar;
 
-   $wp_admin_bar->remove_menu('comments');
 
-   $wp_admin_bar->remove_menu('customize');
 
-   $wp_admin_bar->remove_menu('new-content');
 
-   $wp_admin_bar->remove_menu('wp-logo');
 
- }
 
- add_action( 'wp_before_admin_bar_render', 'boot23_admin_bar_render' );
 
- /*************************************************
 
- // ##############  Admin pages  ################ //
 
- **************************************************/
 
- function boot23_admin_styles(){
 
-   echo '<style>
 
-     #adminmenu,#adminmenuback,#adminmenuwrap{background-color:#325363}
 
-     #adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{background-color:#263E4A}
 
-     #adminmenu .wp-submenu{background-color:#325363}
 
-     #adminmenu li:hover{background-color:#263E4A}
 
-     #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu {background-color:#1c2f38}
 
-     #adminmenu li.wp-has-current-submenu .wp-submenu {background-color:#263E4A}
 
-     #wpadminbar,#wpadminbar .menupop .ab-sub-wrapper {background-color:#325363}
 
-     #wpadminbar a.ab-item:hover,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item{background-color:#263E4A}
 
-   </style>';
 
- }
 
- add_action('admin_head', 'boot23_admin_styles');
 
- remove_action("admin_color_scheme_picker", "admin_color_scheme_picker");
 
- add_action( 'login_enqueue_scripts', 'boot23_login_logo' );
 
- function boot23_login_logo() { ?>
 
-     <style type="text/css">
 
-       #login h1 a, .login h1 a {
 
-         background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/img/dove.png);
 
-         height:130px;
 
-         width:320px;
 
-         background-size: 100px 100px;
 
-         background-repeat: no-repeat;
 
-         padding-bottom: 10px;
 
-       }
 
-     </style>
 
- <?php }
 
- add_filter( 'login_headerurl', 'boot23_login_url' );
 
- function boot23_login_url() {  return home_url(); }
 
- add_filter( 'login_headertext', 'boot23_login_title' );
 
- function boot23_login_title() { return get_option( 'blogname' ); }
 
- function boot23_remove_admin_pages() {
 
- 	remove_menu_page( 'edit-comments.php' );
 
-   remove_menu_page( 'link-manager.php' );
 
-   //remove_menu_page( 'edit.php?post_type=donor' );
 
-   //remove_menu_page( 'edit.php?post_type=funds' );
 
- 	//remove_submenu_page('edit.php', 'edit-tags.php?taxonomy=post_tag');
 
- }
 
- add_action( 'admin_menu', 'boot23_remove_admin_pages', 99 );
 
- function boot23_change_menu_order( $menu_order ) {
 
-   return array(
 
-     'index.php',
 
-     'separator1',
 
-     'edit.php?post_type=page',
 
-     'edit.php',
 
-     'upload.php',
 
-     'edit.php?post_type=soliloquy',
 
-     'separator2',
 
-     'edit.php?post_type=donation',
 
-     'edit.php?post_type=donor',
 
-     'edit.php?post_type=funds',
 
-     'seamless_donations_tab_main',
 
-     'separator-last',
 
-     'themes.php',
 
-     'plugins.php',
 
-     'users.php',
 
-     'tools.php'
 
-   );
 
- }
 
- add_filter( 'custom_menu_order', '__return_true' );
 
- add_filter( 'menu_order', 'boot23_change_menu_order' );
 
- /*************************************************
 
- // ############ Admin footer  ############## //
 
- **************************************************/
 
- add_filter('admin_footer_text', '__return_empty_string', 1000);
 
- add_filter('update_footer', '__return_empty_string', 1000);
 
 
  |