cbc automatic import new uploads complete

Description

Fires after the new videos of an automatic import were checked and imported by the second background process of the Import new videos right away option. See Automatic video import. Available since Video Hub 2.3.5.

Parameters

$feed_id
(int)(required) Post ID of the automatic import.
$result
(array)(required) Import results.

Examples

Clear a page cache after new videos were imported.

add_action( 'cbc_automatic_import_new_uploads_complete', function( $feed_id, $result ) {
    if ( ! empty( $result['imported'] ) && function_exists( 'wp_cache_clear_cache' ) ) {
        wp_cache_clear_cache();
    }
}, 10, 2 );

Start importing in minutes

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