forked from findingsimple/acf-field-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acf-video.php
executable file
·47 lines (38 loc) · 903 Bytes
/
acf-video.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
Plugin Name: Advanced Custom Fields: Video Field
Plugin URI: http://plugins.findingsimple.com
Description: Adds a 'video' field type for the [Advanced Custom Fields](http://wordpress.org/extend/plugins/advanced-custom-fields/) WordPress plugin.
Version: 1.0
Author: Finding Simple
Author URI: http://findingsimple.com
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
class acf_field_video_plugin
{
/*
* Construct
*
*/
function __construct()
{
// set text domain
/*
$domain = 'acf-video';
$mofile = trailingslashit(dirname(__File__)) . 'lang/' . $domain . '-' . get_locale() . '.mo';
load_textdomain( $domain, $mofile );
*/
add_action('acf/register_fields', array($this, 'register_fields'));
}
/*
* register_fields
*
*/
function register_fields()
{
include_once('video.php');
}
}
new acf_field_video_plugin();
?>