Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aal_insert_log documentation #114

Open
syrandel opened this issue Dec 6, 2017 · 0 comments
Open

aal_insert_log documentation #114

syrandel opened this issue Dec 6, 2017 · 0 comments

Comments

@syrandel
Copy link

syrandel commented Dec 6, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant