Skip to content

Viewing Logs

Sean Fisher edited this page May 14, 2020 · 3 revisions

Currently the logs are stored as a custom post type named ai_log and are accessible by the Administrator role (more specifically, access is limited to user with the update_core capability).

A new admin menu labeled Logs will be available just after the Settings menu.

Screen Shot 2020-05-14 at 4 13 47 PM

Post/Term Logs

Logs that are handled through the Post/Term Meta Handlers can be viewed directly in the WordPress Admin

Screen Shot 2020-05-14 at 4 19 49 PM
new AI_Logger\Meta_Box\Post_Meta_Box\Post_Meta_Box( 'log_meta_key', 'Log Title' );

Post/Term logs are also viewable through the WP-CLI:

wp ai-logger display <object_type> <object_id> [--meta_key=<value>]
Clone this wiki locally