Description
Fires when the update job of the Update videos tool finished. Available since Video Hub 2.3.0.
Parameters
- $state
- (array)(required) The job state, with the counters of the report.
Examples
E-mail the administrator when the update is done.
add_action( 'cbc_video_update_finished', function( $state ) {
wp_mail( get_option( 'admin_email' ), 'Video update finished', 'The Video Hub video update is done.' );
} );