phpface

Untitled

Apr 12th, 2021
617
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function videotube_child_check_submit_video_tag( $errors, $data ){
  2.  
  3.     if( empty( $data['video_tag'] ) ){
  4.         $errors->add(
  5.             'video_tag_empty',
  6.             esc_html__( 'Please enter video tags.', 'videotube-child' )
  7.         );
  8.     }
  9.  
  10.     return $errors;
  11. }
  12. add_filter( 'do_ajax_submit_video_errors', 'videotube_child_check_submit_video_tag', 10, 2 );
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×