Skip to content

Instantly share code, notes, and snippets.

@stranger26
Created January 16, 2017 00:36
Show Gist options
  • Save stranger26/8349e68e61bbe08f74f0b2efe84385c9 to your computer and use it in GitHub Desktop.
Save stranger26/8349e68e61bbe08f74f0b2efe84385c9 to your computer and use it in GitHub Desktop.
Wordpress Plugin that Replaces Default Text
<?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