This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ===================================================================================== | |
| Удаляем поле сайт и куки из формы комментарьев | |
| ===================================================================================== | |
| <?php | |
| add_filter( 'comment_form_default_fields', 'comment_form_default_add_my_fields' ); | |
| function comment_form_default_add_my_fields( $fields ) { | |
| unset( $fields['url'] ); | |
| unset( $fields['cookies'] ); | |
| return $fields; | |
| } ?> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| // Trim admin interface | |
| add_action('init', 'moon_unregister_tags'); | |
| add_action('login_head', 'custom_login'); | |
| add_action('admin_head', 'trim_admin_interface'); | |
| add_action('admin_head', 'remove_adm_tab_help'); | |
| add_action('admin_menu', 'remove_menus', 10); | |
| add_filter('admin_bar_menu', 'clear_admin_bar_menu', 5); | |
| function trim_admin_interface(){ | 
Include from functions.php
// Core WordPress functions
include_once get_stylesheet_directory() . '/inc/admin/admin-footer-credit.php';
include_once get_stylesheet_directory() . '/inc/admin/clean-admin-bar.php';
include_once get_stylesheet_directory() . '/inc/admin/clean-wordpress.php';
include_once get_stylesheet_directory() . '/inc/admin/clean-dashboard-menu.php';
Table of Contents
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /** | |
| * Logitud de the_excerpt() a 25 palabras | |
| */ | |
| function ramasilveyra_custom_excerpt_length( $length ) { | |
| return 25; | |
| } | |
| add_filter( 'excerpt_length', 'ramasilveyra_custom_excerpt_length', 999 ); | |
| /** | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <? | |
| if ( !defined('TEMPLATE_URI') ) define('TEMPLATE_URI', get_template_directory_uri()); | |
| // ---------------------------------------------------------------------------- | |
| // ---------- admin customization ---------- | |
| // ---------------------------------------------------------------------------- | |
| //Remove update notification - NOT WORKING with 3+ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /* | |
| Plugin Name: Custom Core Functions | |
| Plugin URI: https://nathaningram.com | |
| Description: Customize the WP Core | |
| Version: 2023.11 | |
| Author: Nathan Ingram | |
| Author URI: https://nathaningram.com | |
| License: GPL2 | |
| */ | 
NewerOlder
        