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
Documentation for using aal_insert_log() is hard to find.
To implement the function and make it work in my own plugins I had to look into aryo-activity-log\classes\class-aal-activity-log-list-table.php.
When using activity-log out of the box, the object_type parameter can be only one of the following list:
'Core', 'Export', 'Post', 'Taxonomy', 'User', 'Options', 'Attachment', 'Plugin', 'Widget', 'Theme', 'Menu', 'Comments'
When using some other string, the record will be inserted in the DB, but it will not be displayed in the admin area.
object_type is in fact in aal called a role.
See @gfirem solution to add a custom role: #87
I hope it will help you.
Have a good programming day.
The text was updated successfully, but these errors were encountered:
Documentation for using aal_insert_log() is hard to find.
To implement the function and make it work in my own plugins I had to look into aryo-activity-log\classes\class-aal-activity-log-list-table.php.
When using activity-log out of the box, the object_type parameter can be only one of the following list:
'Core', 'Export', 'Post', 'Taxonomy', 'User', 'Options', 'Attachment', 'Plugin', 'Widget', 'Theme', 'Menu', 'Comments'
When using some other string, the record will be inserted in the DB, but it will not be displayed in the admin area.
object_type is in fact in aal called a role.
See @gfirem solution to add a custom role: #87
I hope it will help you.
Have a good programming day.
The text was updated successfully, but these errors were encountered: