Skip to content
Docs
Get RestroPress

Action

rpress_post_update_log

Updated
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#

ParameterTypeDescription
$log_idintID returned by wp_update_post().
$log_dataarrayLog entry data passed to update_log().
$log_metaarrayLog 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), in RPRESS_Logging::update_log()

See also#

Was this page helpful?