Title: Themed Login Plugin patch
Last modified: August 18, 2016

---

# Themed Login Plugin patch

 *  [HM](https://wordpress.org/support/users/hcm/)
 * (@hcm)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/themed-login-plugin-patch/)
 * I’m using the [Themed Login Plugin](http://www.jameskelly.org/wordpress-plugins/custom-login-and-registration-forms-plugin/)
   and it works great except for one thing. The plugin does not check to see if 
   the ‘anyone can register’ option is enabled. I have that option disabled and 
   do not want the registration form to show so I added the following code to the
   jk_do_register function just after the globals:
 *     ```
       if ( FALSE == get_option('users_can_register') ) {
       		$header_files = get_option("jk_login_header_files");
           	foreach((array)$header_files as $header_file)
       			include(TEMPLATEPATH . '/' . $header_file);
   
       		echo get_option("jk_login_after_head_html");
   
       		echo('<h2>Registration is closed</h2>');
   
       		echo get_option("jk_login_before_foot_html");
   
       		$footer_files = get_option("jk_login_footer_files");
           	foreach((array)$footer_files as $footer_file)
       			include(TEMPLATEPATH . '/' . $footer_file);
   
       		exit();
       	}
       ```
   

The topic ‘Themed Login Plugin patch’ is closed to new replies.

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)
 * [register](https://wordpress.org/support/topic-tag/register/)

 * 0 replies
 * 1 participant
 * Last reply from: [HM](https://wordpress.org/support/users/hcm/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/themed-login-plugin-patch/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
