Method | Description | |
---|---|---|
__construct ( ) : void | Class Constructor | |
add ( string $title = '', string $message = '', integer $parent, string $type = null ) : integer | Create new log entry | |
delete_logs ( integer $object_id, string $type = null, array $meta_query = null ) : void | Delete Logs | |
get_connected_logs ( array $args = [] ) : array | false | Retrieve all connected logs | |
get_log_count ( integer $object_id, string $type = null, array $meta_query = null, array $date_query = null ) : integer | Retrieve Log Count | |
get_logs ( integer $object_id, string $type = null, integer $paged = null ) : array | Get Logs | |
insert_log ( array $log_data = [], array $log_meta = [] ) : integer | Stores a log entry | |
log_types ( ) : array | Log Types | |
register_post_type ( ) : void | Log Post Type | |
register_taxonomy ( ) : void | Log Type Taxonomy | |
update_log ( array $log_data = [], array $log_meta = [] ) : boolean | Update and existing log item | |
valid_type ( string $type ) : boolean | Check if a log type is valid |
public __construct ( ) : void | ||
return | void |
public add ( string $title = '', string $message = '', integer $parent, string $type = null ) : integer | ||
$title | string | Log entry title. Default is empty. |
$message | string | Log entry message. Default is empty. |
$parent | integer | Log entry parent. Default is 0. |
$type | string | Log type. Default is null. |
return | integer | Log ID. |
public get_connected_logs ( array $args = [] ) : array | false | ||
$args | array | Query arguments. |
return | array | false | Array if logs were found, false otherwise. |
public get_log_count ( integer $object_id, string $type = null, array $meta_query = null, array $date_query = null ) : integer | ||
$object_id | integer | Log object ID. Default is 0. |
$type | string | Log type. Default is null. |
$meta_query | array | Log meta query. Default is null. |
$date_query | array | Log data query. Default is null. |
return | integer | Log count. |
public register_post_type ( ) : void | ||
return | void |
public register_taxonomy ( ) : void | ||
return | void |
public valid_type ( string $type ) : boolean | ||
$type | string | Log type. |
return | boolean | Whether log type is valid. |