1

There are several fatal assumptions here, and, a far better way to do it. 1. Declaring Functions inside Functions This will cause a fatal error in a future version of PHP, makes it super difficult to debug. But worst, it's completely unnecessary. This: function foo () { function bar () { // } bar(); } Should just be this: function bar(...


1

If you were looking to make the fields required in the Wordpress admin form for adding new user as i understood from your question, where the output is not filterable, you could basically do what you described (adding form-required) on browser side function se372358_add_required_to_first_name_last_name(string $type) { if ( 'add-new-user' === $type ) { ...


1

If the plugin dynamically generates script and style handles so that you can't use wp_dequeue_script and wp_dequeue_style, as you said in a comment on another answer, then you would need to fork the plugin, and remove the section of code that is doing that, or else wrap it in a conditional so that it only loads on the specific page in question. (Fork, ...


Only top voted, non community-wiki answers of a minimum length are eligible