The Hook registration_errors was not called

You are not using the registration_errors hook properly. It should look like this: add_filter( ‘registration_errors’, ‘reg_user_register’, 10, 3); function reg_user_register($errors, $sanitized_user_login, $user_email){ $custom_reg_field1 = $_POST[“custom_reg_field1”]; // add error checking here if ( empty($custom_reg_field1) ) { $errors->add(‘custom_reg_field1’, __( ‘Please enter a reg_field1.’ ) ); } return $errors; }

Using TinyMCE in plugin?

I’d say the solution is to search through the Editor javascript code, and see how it handles the “tinymce” value in the fields array. Then just to change all links to the existing TinyMCE installation.

How to exclude certain files from the plugin editor?

Ok I figured it out, there is just one filter hook in the wp-admin/plugin-editor.php that can be useful but it’s enough (otherwise one would probably need to mess with the output buffer). if(is_admin()){ add_filter(‘editable_extensions’, array($this, ‘my_editable_extensions’)); } and then function my_editable_extensions($editable_extensions){ if(empty($_POST[‘plugin’]) || (!empty($_POST[‘plugin’]) && $_POST[‘plugin’] !== “plugin-name/plugin-name.php”){ return $editable_extensions; }else{ return array_diff($editable_extensions, array(‘txt’, ‘html’)); … Read more