Created
January 16, 2017 00:36
-
-
Save stranger26/8349e68e61bbe08f74f0b2efe84385c9 to your computer and use it in GitHub Desktop.
Wordpress Plugin that Replaces Default Text
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: Replace 'Register For This Site' Text | |
* Plugin URI: http://go2online.com | |
* Description: This plugin replaces default text. | |
* Version: 1.0.0 | |
* Author: Ho Chin Chee | |
* Author URI: http://go2online.com | |
* License: GPL2 | |
*/ | |
add_filter('login_message','change_register_page_msg'); | |
function change_register_page_msg($message) | |
{ | |
if(strpos($message,"Register For This Site") == true) | |
{ | |
$message = '<p class="message">Register to view the collections</p>'; | |
} | |
return $message; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment