I'm developing an intranet platform (so no external web access) and using the Password only login plugin.
I need to make a deep customization to the
- the plugin i linked allows selected users to login with the password only. To do so it provides the
pol_showform()function to be put where you want the custom login form (with password only) to appear;
- as not all the user will be allowed to login with password only, i will need to keep the "classic login form". To do so i want to transform the "classic login form" adding a jQuery tab: in the first tab there will be the "password only login" (generated by the
pol_showform()function), in the second tab there will be the "classic login form".
Now, i searched the web with no success for a way to override the
wp-login.php page in my child theme. I know it's not a good idea, but it seems the only way to achieve what i need is to edit directly the
wp-login.php file? Any alternative?
Found this Example2 that could solve the situation. The code in the example contains some errors (such as the
echo $our_content when tha variable is
$your_content) which is a little bit sad for an official documentation.
Anyway, problem is that there are paragraph added after the page has loaded and so the
ob_get_contents() doesn't capture them. This piece of HTML is composed by the following paragraphs:
Anyone knows hot to dequee them? Or how to fetch them in the
ob_get_contents()? Is there any hook that fires after the whole page has been cached?