Action
rpress_post_update_log
On this page
Fires after a log entry has been updated.
Runs at the end of RPRESS_Logging::update_log(), after wp_update_post() and after non-empty meta values have been saved. Empty meta values are skipped by update_log(), so they are not cleared.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$log_id | int | ID returned by wp_update_post(). |
$log_data | array | Log entry data passed to update_log(). |
$log_meta | array | Log meta key and value pairs. |
Example#
function my_after_update_log( $log_id, $log_data, $log_meta ) {
error_log( 'Log updated: ' . $log_id );
}
add_action( 'rpress_post_update_log', 'my_after_update_log', 10, 3 );
Source#
Fired from:
includes/class-rpress-logging.php(line 204), inRPRESS_Logging::update_log()
See also#
Was this page helpful?
