Archived topic
Where are elements (functions and hooks) saved?
5 replies · Started by Jack on January 27, 2023
I used to work with Genesis and the Genesis Extender plugin (and sometimes still do). When I made a mistake with a function the site could go offline and I could not enter admin anymore. But I could always login with FTP and go inside the uploads/extender folder, find the functions and correct my error.
Where does Generatepress save all elements so I can correct mistakes if necessary, like being locked out of a site?
Thanks Leo. Hmmm, this seems to be up for improvements ;). Consider it a feature request if possible.
The Genesis Extender plugin works much much easier in these cases. Whenever I'm trying out php code and I know i can easily make a mistake, I always have Filezilla opened and I can open and correct the functions.php file (which contains all custom hooks and code) right away. It's in the uploads/extender folder, adjust or revert code, save and the website is up and running again. Doing this the GP way is not really easy and quick.
Whenever I’m trying out php code and I know i can easily make a mistake, I always have Filezilla opened and I can open and correct the functions.php file (which contains all custom hooks and code) right away.
In that case, you can just use the function method with a child theme:
https://docs.generatepress.com/article/using-hooks/
Yes I know :) but then I'm not able to use the convenience of the Element section, which is very nice. Maybe I will buy the Extender Pro plugin which does the same thing with GP as it does with Genesis.
I think features like this one would need to be handled by a third-party plugin for sure.