Changeset 2651426
- Timestamp:
- 12/31/2021 05:05:09 PM (4 years ago)
- File:
-
- 1 edited
-
video-metabox-aoc/trunk/video-metabox-aoc.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
video-metabox-aoc/trunk/video-metabox-aoc.php
r1880474 r2651426 3 3 /** 4 4 * Author: Ankit Tiwari 5 * Author uri: http ://artofcoding.in6 * Plugin uri: http ://artofcoding.in/video-metabox5 * Author uri: https://artofcoding.in 6 * Plugin uri: https://artofcoding.in/video-metabox 7 7 * Plugin name: Video Metabox AOC 8 8 * Description: This plugin allows you to upload video as a custom field for a post/page. 9 * Version: 0.19 * Version: 1.0 10 10 */ 11 11 function aoc_vid_register_meta_boxes() … … 31 31 Your browser does not support the video tag. 32 32 </video><input type="hidden" name="aoc_vid_video" id="aoc_vid_vid_input" value="<?= intval($aoc_vid_video) ?>"><button data-vid-id="<?= intval($aoc_vid_video) ?>" class="aoc-del-vid" type="button">X</button></div> 33 <?php33 <?php 34 34 endif; 35 35 ?> … … 44 44 { 45 45 // if (!wp_verify_nonce($_POST['aoc_vid_save_vid_nonce'], 'aoc_vid_save_video')) { 46 46 47 47 // return; 48 48 // } … … 69 69 70 70 $vid = get_post_meta($post_id, 'aoc_vid_video', true); 71 return $vid;71 return wp_get_attachment_url($vid); 72 72 }
Note: See TracChangeset
for help on using the changeset viewer.