This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
ssstofff
commented
May 12, 2014
Hi, I just found your awesome idea to replace input buttons by copy/pasted code into functions.php ... no errors ... but I have just no buttons anymore now. Thx a lot! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
richardW8k
May 13, 2014
If the add_filter lines are there the function will run. What version of PHP are you running, the ability to include a parameter in the saveHTML call was only introduced in PHP 5.3.6.
If the add_filter lines are there the function will run. What version of PHP are you running, the ability to include a parameter in the saveHTML call was only introduced in PHP 5.3.6. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
ssstofff
commented
May 13, 2014
works like a charm after PHP 5.3.3 update to 5.4 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
lkraav
Feb 19, 2015
Using DOMDocument and everything. You sir, have done very well here. I don't have to adjust a single thing :)
lkraav
commented
Feb 19, 2015
Using DOMDocument and everything. You sir, have done very well here. I don't have to adjust a single thing :) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
lkraav
Feb 19, 2015
Maybe one thing: why add the span granularity? Why not have input "value" attribute simply as button text node?
$new_button->appendChild( $dom->createTextNode( $input->getAttribute( "value" ) ) );
lkraav
commented
Feb 19, 2015
Maybe one thing: why add the span granularity? Why not have input "value" attribute simply as button text node?
|
Hi, I just found your awesome idea to replace input buttons by
copy/pasted code into functions.php ... no errors ... but I have just no buttons anymore now.
But I suppose I need to execute the function 'input_to_button' to get this working, but how?
Thx a lot!