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 | |
// functions.php | |
/** | |
* Remove language dropdown from WordPress Admin login screen. | |
*/ | |
add_filter('login_display_language_dropdown', '__return_false'); | |
/** | |
* Disable XML-RPC by default. |
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 | |
// functions.php | |
/** | |
* Allow upload of non-standard file types in the media library. | |
* | |
* @param array $mime_types [default mime types]. | |
* @return array $mime_types [modified mime types]. | |
*/ | |
function mnet_upload_mime_types($mime_types) { |
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 | |
// functions.php | |
if ( !defined('THEME_WP_VERSION') ) { | |
$wp_version = get_bloginfo('version'); | |
define('THEME_WP_VERSION', $wp_version); | |
} | |
function mnet_setup() { | |
// ... |