There is one function that fires in the post comments page (comments.php), which is buried in the theme folder, that I need to edit. I need to change the code to put the existing function into an IF ELSE statement.
WordPress Plugin - Is It Possible to Programmatically Edit Theme Code
8
There is one function that fires in the post comments page (comments.php), which is buried in the theme folder, that I need to edit.
I need to change the code to put the existing function into an IF ELSE statement.
For example:
I could tell people, "go to the comments.php file and replace X with Y", but I hate doing that, because people are scared to death of playing with code.
I would rather program a solution that automatically makes this change.
But I cannot seem to locate any tutorial that addresses this.
Am I seeking to do the impossible? Or is there a way to do this that I have not yet thought of?
Thanks in advance.
I need to change the code to put the existing function into an IF ELSE statement.
For example:
Code:
if (...)
{
// do original function
}
else
{
// do new function
} I would rather program a solution that automatically makes this change.
But I cannot seem to locate any tutorial that addresses this.
Am I seeking to do the impossible? Or is there a way to do this that I have not yet thought of?
Thanks in advance.
- tpw
- mikeminneman
- [ 1 ] Thanks
- tpw
- Tim Franklin
- SteveJohnson
- [1] reply
- MoonWolf
Next Topics on Trending Feed
-
8