You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most actions that we might want to intercept (eg. add/delete) are handled by YOURLS in admin.php, and it doesn't always send notifications that an action is about to occur.
Ideally, the authmgr would register hooks for each individual action in YOURLS that needs to be controlled. But since that's not possible, it needs to intercept loading of the admin page and run some custom logic to determine what action is happening. This is prone to break in the future as YOURLS internal behaviour changes.
Looks like some are already available.
pre_add_new_link
pre_edit_link
But some are still needed.
yourls_delete_link_by_keyword() -> should throw action pre_yourls_delete_link
yourls_activate_plugin() -> should throw action pre_activate_plugin
yourls_deactivate_plugin() -> should throw action pre_deactivate_plugin
Putting a pull request into YOURLS core to add these hooks would be ideal.
The text was updated successfully, but these errors were encountered:
Referring to @nicwaller 's [comments] (nicwaller#2):
Putting a pull request into YOURLS core to add these hooks would be ideal.
The text was updated successfully, but these errors were encountered: