Advertisement
phpface

Untitled

Sep 12th, 2018
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. if( ! function_exists( 'videotube_code_before_player' ) ){
  2.     /**
  3.      *
  4.      * Insert code before player
  5.      *
  6.      */
  7.     function videotube_code_before_player() {
  8.         ?>
  9.         <!-- Insert HTML/JS code -->
  10.        
  11.        
  12.         <?php
  13.     }
  14.     add_action( 'videotube_before_video' , 'videotube_code_before_player' );
  15. }
  16.  
  17. if( ! function_exists( 'videotube_code_after_player' ) ){
  18.     /**
  19.      *
  20.      * Insert code after player
  21.      *
  22.      */
  23.     function videotube_code_after_player() {
  24.         ?>
  25.         <!-- Insert HTML/JS code -->
  26.        
  27.        
  28.         <?php
  29.     }
  30.     add_action( 'videotube_after_video' , 'videotube_code_after_player' );
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement