Problem With Import In Particular Category
-
Im testing Your code in my site i put the in function.php here is The code
add_filter( 'tube_vc_filter_import_term', 'mytube_custom_import_terms' ); function mytube_custom_import_terms( $import_term_ids, $source_site, $creator_name ){ // custom terms per channel $custom_terms = array( 'youtube-rihannavevo' => array( 2 ), ); // create a slug from source site and creator name $key = $source_site.'-'.sanitize_title($creator_name); // if no custom terms, send back original value if ( ! array_key_exists( $key, $term_map ) ): return $import_term_ids; endif; // return the custom terms for this channel return $custom_terms[ $key ]; }
i import one video But didnt workout What is the problem
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Problem With Import In Particular Category’ is closed to new replies.