View custom-excerpt-length.php
This file contains 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 | |
function mwpf_custom_excerpt_length( $length ) { | |
return 20; | |
} | |
add_filter( 'excerpt_length', 'mwpf_custom_excerpt_length'); |
View remove-admin-bar.php
This file contains 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( 'show_admin_bar', '__return_false' ); |
View google-html5-shim.php
This file contains 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 | |
function mwpf_IEhtml5_shim () { | |
global $is_IE; | |
if ($is_IE) | |
echo '<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->'; | |
} | |
add_action('wp_head', 'mwpf_IEhtml5_shim'); |
View disable-admin-editor.php
This file contains 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 | |
define('DISALLOW_FILE_EDIT', true); |
View remove-header-version.php
This file contains 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 | |
remove_action('wp_head', 'wp_generator'); |
View oembed-maximum-width.php
This file contains 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 | |
if ( ! isset( $content_width ) ) | |
$content_width = 660; |
View more-search-results.php
This file contains 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 | |
function mwpf_search_results_per_page( $query ) { | |
global $wp_the_query; | |
if ( ( ! is_admin() ) && ( $query === $wp_the_query ) && ( $query->is_search() ) ) { | |
$query->set( 'mwpf_search_results_per_page', 25 ); | |
} | |
return $query; | |
} | |
add_action( 'pre_get_posts', 'mwpf_search_results_per_page' ); |
View obscure-login-errors.php
This file contains 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 | |
function mwpf_login_obscure(){ return '<strong>Sorry</strong>: Think you have gone wrong somwhere!';} | |
add_filter( 'login_errors', 'mwpf_login_obscure' ); |
NewerOlder