EDD_Logging::add( string $title = '', string $message = '', int $parent, string $type = null )
Create new log entry
Description Description
This is just a simple and fast way to log something. Use $this->insert_log() if you need to store custom meta data
Parameters Parameters
- $title
-
(Optional) Log entry title
Default value: ''
- $message
-
(Optional) Log entry message
Default value: ''
- $parent
-
(Required) Log entry parent
- $type
-
(Optional) Log type (default: null)
Default value: null
Return Return
(int) Log ID
Source Source
File: includes/class-edd-logging.php
Changelog Changelog
Version | Description |
---|---|
1.3.1 | Introduced. |