dmchale / disable-json-api

Public repo for the "Disable REST API" WordPress plugin, currently with 90,000+ active installs in the wordpress.org repository
10 stars 9 forks source link

Add tab for managing logging of API requests #50

Open dmchale opened 11 months ago

dmchale commented 11 months ago

Global on/off button

If on, default to WP_CONTENT directory so our file lives next to debug.log

OPTIONAL: If on, provide field for overriding the default server location: the default is wherever debug.log is being saved to

Ensure that messaging warns people THIS IS NOT SOMETHING THAT SHOULD BE PERMANENTLY KEPT ON

NICE TO HAVE TO START: the on/off button should primarily save to an Option, but we should ALSO allow for a new constant that admins can define in wp-config, similar to WP_DEBUG (the constant always wins if it's set to True)

OPTIONAL: provide a button to "ignore me" by user, or role, or IP address

OPTIONAL: Do we provide a mechanism out of the gate that will allow for "turn off after a certain amount of time"? Or "truncate after X entries" or "add a cron do that this cleans itself every X minutes/hours/days"