Removed in Video Hub 2.0. The automatic imports no longer run during a page load, so this filter has no effect. They run in the background, through Action Scheduler; see The automatic import explained. To stop the automatic imports, use cbc_allow_auto_import.
Description
Filter the WordPress hook on which the automatic import is started. Used internally to move the importer to a different hook (for example init) instead of the default shutdown.
Parameters
- $hook
- (string)(required) The action hook name the importer runs on.
- Default:‘shutdown’
Example
add_filter( 'cbc_automatic_import_start_on_hook', function() {
return 'init';
} );