Help Center
Find answers or browse our knowledge base.
Latest Questions
Next Update- Version 5.1
Core Improvements to Hook Injection System:
-
Prevented theme switching on action
Injection, uninject, and delete actions no longer force the UI to jump to the target theme. The system now preserves the user's current theme view usinghook_theme. -
Injection now creates only one backup per file
Replaced timestamped.bak.YYYYMMDD_HHMMSSlogic with a single backup per template:-
template.tpl.backByPluginSys→ for inject -
template.tpl.uninject.bak→ for uninject
-
-
Prevented duplicate hook injection attempts
Added logic to detect if the hook is already present before re-injecting. Shows a proper message and skips file overwrite. -
Debug logs for injection diagnosis
Temporarily added debug logging to trace file path, marker presence, and write status. Helped identify silent failures during hook insertion. -
Hook marker matching made more reliable
Improved internal handling and matching ofmarker_textwithstrpos, now tightly controlled and consistent across themes. -
Fixed DB schema for
plugin_hook_injections
AddedAUTO_INCREMENTandPRIMARY KEYto theidcolumn to prevent all rows from being created withid = 0. -
Cleaned up logic for
perform_injectionanduninject
Refactored redirect behavior, injection confirmation, and backup file creation to prevent noise, confusion, and maintenance burden.
Was this answer helpful?
How could it be better?
What went wrong?