| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: WpStream |
| 4 | 4 | * Plugin URI: wpstream.net |
| 5 | 5 | * Description: WpStream is a wordpress plugin to help you stream & monetize media content. |
| 6 | - * Version: 1.1 | |
| 6 | + * Version: 1.2 | |
| 7 | 7 | * Author: wpstream.net |
| 8 | 8 | * Author URI: https://wpstream.net |
| 9 | 9 | * Developer: WpStream |
| 10 | 10 | * Developer URI: https://wpstream.net |
| @@ -172,11 +172,8 @@ | ||
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | |
| 176 | -https://18474-1530262243.live.streamer.wpstream.net/hls/xKbbe6q7c4zKnt9ubJyuBVc7gO9CpB6X.m3u8 e | |
| 177 | - | |
| 178 | - | |
| 179 | 176 | function wpstream_live_event_player($product_id){ |
| 180 | 177 | $live_event_uri = get_post_meta($product_id,'live_event_uri',true); |
| 181 | 178 | $thumb_id = get_post_thumbnail_id($product_id); |
| 182 | 179 | $thumb = wp_get_attachment_image_src($thumb_id,'small'); |
| @@ -234,8 +231,23 @@ | ||
| 234 | 231 | </p> |
| 235 | 232 | </video>'; |
| 236 | 233 | |
| 237 | 234 | } |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | +add_filter('display_post_states', 'wpstream_custom_post_states',10,2); | |
| 239 | + | |
| 240 | +function wpstream_custom_post_states( $states, $post ) { | |
| 241 | + $title =strtolower( get_the_title($post->ID)); | |
| 242 | + if ( ( 'page' == get_post_type( $post->ID ) ) && ( $title ==='userkey' || $title ==='vodkey' || $title ==='wpstream' )) { | |
| 243 | + $states[] = __('by WpStream - do not delete','wpstream'); | |
| 244 | + } | |
| 245 | + | |
| 246 | + return $states; | |
| 247 | +} | |
| 248 | + | |
| 249 | + | |
| 238 | 250 | |
| 239 | 251 | |
| 240 | 252 | |
| 241 | 253 | |