cbc video update finished

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.' );
} );

Start importing in minutes

Bring your YouTube content into WordPress and let it update itself. Includes automatic updates and support.