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
/** | |
* Obscure log in screen error messages | |
*/ | |
function wpfme_login_obscure(){ return '<strong>Oh no... </strong>It looks like the user name and password combination that you entered is wrong.';} | |
add_filter( 'login_errors', 'wpfme_login_obscure' ); |
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
/** | |
* Remove WordPress version number from header | |
*/ | |
remove_action('wp_head', 'wp_generator'); |
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
/** | |
* Stop images from getting wrapped in the_content()'s <p> tags | |
*/ | |
function remove_img_ptags($content){ | |
return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(\/a>)?\s*<\/p>/iU', '\1\2\3', $content); | |
} | |
add_filter('the_content', 'remove_img_ptags'); |
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
/** | |
* Replace the default WordPress dashboard footer text and link with a custom message | |
*/ | |
function footer_admin () { | |
echo 'Website designed and developed by <a href="http://go-spi.com/" target="_blank">Schmitt ProfiTools, Inc.</a>'; | |
} | |
add_filter('admin_footer_text', 'footer_admin'); |
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
/** | |
* Re-enable the built in WordPress links manager | |
*/ | |
add_filter( 'pre_option_link_manager_enabled', '__return_true' ); |
NewerOlder